Property | Type | Description | |
---|---|---|---|
InterfaceCaptureGroupName | string | ||
LocateForView | object>.Func | ||
LocateForViewType | object>.Func | ||
LocateTypeForViewType | Func |
||
NameTransformer | NameTransformer | ||
TransformName | Func |
Method | Description | |
---|---|---|
AddDefaultTypeMapping ( string viewSuffix = "View" ) : void |
Adds a default type mapping using the standard namespace mapping convention
|
|
AddNamespaceMapping ( string nsSource, string nsTargets, string viewSuffix = "View" ) : void |
Adds a standard type mapping based on simple namespace mapping
|
|
AddSubNamespaceMapping ( string nsSource, string nsTargets, string viewSuffix = "View" ) : void |
Adds a standard type mapping by substituting one subnamespace for another
|
|
AddTypeMapping ( string nsSourceReplaceRegEx, string nsSourceFilterRegEx, string nsTargetsRegEx, string viewSuffix = "View" ) : void |
Adds a standard type mapping based on namespace RegEx replace and filter patterns
|
|
ConfigureTypeMappings ( |
Specifies how type mappings are created, including default type mappings. Calling this method will clear all existing name transformation rules and create new default type mappings according to the configuration.
|
|
MakeInterface ( string typeName ) : string |
Makes a type name into an interface name.
|
Method | Description | |
---|---|---|
SetAllDefaults ( ) : void | ||
ViewModelLocator ( ) : System |
public static AddDefaultTypeMapping ( string viewSuffix = "View" ) : void | ||
viewSuffix | string | Suffix for type name. Should be "View" or synonym of "View". (Optional) |
return | void |
public static AddNamespaceMapping ( string nsSource, string nsTargets, string viewSuffix = "View" ) : void | ||
nsSource | string | Namespace of source type |
nsTargets | string | Namespaces of target type as an array |
viewSuffix | string | Suffix for type name. Should be "View" or synonym of "View". (Optional) |
return | void |
public static AddSubNamespaceMapping ( string nsSource, string nsTargets, string viewSuffix = "View" ) : void | ||
nsSource | string | Subnamespace of source type |
nsTargets | string | Subnamespaces of target type as an array |
viewSuffix | string | Suffix for type name. Should be "View" or synonym of "View". (Optional) |
return | void |
public static AddTypeMapping ( string nsSourceReplaceRegEx, string nsSourceFilterRegEx, string nsTargetsRegEx, string viewSuffix = "View" ) : void | ||
nsSourceReplaceRegEx | string | RegEx replace pattern for source namespace |
nsSourceFilterRegEx | string | RegEx filter pattern for source namespace |
nsTargetsRegEx | string | Array of RegEx replace values for target namespaces |
viewSuffix | string | Suffix for type name. Should be "View" or synonym of "View". (Optional) |
return | void |
public static ConfigureTypeMappings ( |
||
config | An instance of TypeMappingConfiguration that provides the settings for configuration | |
return | void |
public static MakeInterface ( string typeName ) : string | ||
typeName | string | The part. |
return | string |
public static string InterfaceCaptureGroupName | ||
return | string |
public static Func |
||
return | object>.Func |
public static Func |
||
return | Func |
public static NameTransformer NameTransformer | ||
return | NameTransformer |