Class BackwardCompatibilityManager
Class to handle deprecated or renamed types
Inherited Members
Namespace: Xareus.Scenarios.Utilities
Assembly: Xareus.Scenarios.dll
Syntax
public class BackwardCompatibilityManager
Methods
AddRenamedType(string, string, string, string)
Add a renamed type entry
Declaration
public static void AddRenamedType(string previousName, string previousAssemblyName, string newTypeName, string newTypeAssembly)
Parameters
Type | Name | Description |
---|---|---|
string | previousName | The previous name (including namespace) of the type |
string | previousAssemblyName | The previous assembly name of the type. If not specified, the newTypeAssembly parameter will be used |
string | newTypeName | The renamed type name (including namespace) |
string | newTypeAssembly | The renamed type assembly name |
AddRenamedType(string, string, Type)
Add a renamed type entry
Declaration
public static void AddRenamedType(string previousName, string previousAssemblyName, Type newType)
Parameters
Type | Name | Description |
---|---|---|
string | previousName | The previous name (including namespace) of the type |
string | previousAssemblyName | The previous assembly name of the type. If not specified, the current assembly of the newType parameter will be used |
Type | newType | The renamed type |
GetTypeAndRenamerFromPreviousName(string)
Declaration
public static Tuple<Type, IRenameClass> GetTypeAndRenamerFromPreviousName(string previousName)
Parameters
Type | Name | Description |
---|---|---|
string | previousName |
Returns
Type | Description |
---|---|
Tuple<Type, IRenameClass> |
GetTypeFromPreviousName(string)
Declaration
public static Type GetTypeFromPreviousName(string previousName)
Parameters
Type | Name | Description |
---|---|---|
string | previousName |
Returns
Type | Description |
---|---|
Type |
ReplaceRenamedTypes(string)
Declaration
public static string ReplaceRenamedTypes(string classname)
Parameters
Type | Name | Description |
---|---|---|
string | classname |
Returns
Type | Description |
---|---|
string |