Class OverrideClassAttribute
Overrides the class defined by the parameter. The Scenario Engine will charge the overriding class instead
Inheritance
OverrideClassAttribute
Assembly: Xareus.Scenarios.dll
Syntax
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum, AllowMultiple = true, Inherited = true)]
public sealed class OverrideClassAttribute : Attribute, IRenameClass
Constructors
OverrideClassAttribute(string)
Declaration
public OverrideClassAttribute(string overridenClassName)
Parameters
Type |
Name |
Description |
string |
overridenClassName |
|
OverrideClassAttribute(string, string)
Declaration
public OverrideClassAttribute(string overridenClassName, string overridenClassAssemblyName)
Parameters
Type |
Name |
Description |
string |
overridenClassName |
|
string |
overridenClassAssemblyName |
|
OverrideClassAttribute(string, string, Type)
Declaration
public OverrideClassAttribute(string overridenClassName, string overridenClassAssemblyName, Type parametersConverter)
Parameters
Type |
Name |
Description |
string |
overridenClassName |
|
string |
overridenClassAssemblyName |
|
Type |
parametersConverter |
|
OverrideClassAttribute(string, Type)
Declaration
public OverrideClassAttribute(string overridenClassName, Type parametersConverter)
Parameters
Type |
Name |
Description |
string |
overridenClassName |
|
Type |
parametersConverter |
|
Properties
ParametersConverter
The class to convert the parameters from the old to the new format
Declaration
public IFunctionParametersConverter ParametersConverter { get; set; }
Property Value
RenamedClassAssemblyName
The previous assembly name of the element
Declaration
public string RenamedClassAssemblyName { get; set; }
Property Value
RenamedClassName
The previous name of the element
Declaration
public string RenamedClassName { get; set; }
Property Value
Methods
GetTypeAndRenamerFromPreviousName(string)
Declaration
public static Tuple<Type, IRenameClass> GetTypeAndRenamerFromPreviousName(string previousName)
Parameters
Type |
Name |
Description |
string |
previousName |
|
Returns
GetTypeFromPreviousName(string)
Declaration
public static Type GetTypeFromPreviousName(string previousName)
Parameters
Type |
Name |
Description |
string |
previousName |
|
Returns
ReplaceRenamedTypes(string)
Declaration
public static string ReplaceRenamedTypes(string classname)
Parameters
Type |
Name |
Description |
string |
classname |
|
Returns
Implements