Class LocalizationHelper
Localization extensions for reflection.
Inheritance
System.Object
LocalizationHelper
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Reflection
Assembly: Kephas.Core.dll
Syntax
public static class LocalizationHelper
Properties
| Improve this Doc View SourceCreateTypeInfoLocalization
Gets or sets the function for creating the type info localization.
Declaration
public static Func<ITypeInfo, ITypeInfoLocalization> CreateTypeInfoLocalization { get; set; }
Property Value
Type | Description |
---|---|
System.Func<ITypeInfo, ITypeInfoLocalization> | The function for creating the type info localization. |
Methods
| Improve this Doc View SourceGetLocalization(IPropertyInfo)
Gets the localization for a IPropertyInfo.
Declaration
public static IMemberInfoLocalization GetLocalization(this IPropertyInfo propertyInfo)
Parameters
Type | Name | Description |
---|---|---|
IPropertyInfo | propertyInfo | The property information to act on. |
Returns
Type | Description |
---|---|
IMemberInfoLocalization | The property localization. |
GetLocalization(ITypeInfo)
Gets the localization for a ITypeInfo.
Declaration
public static ITypeInfoLocalization GetLocalization(this ITypeInfo typeInfo)
Parameters
Type | Name | Description |
---|---|---|
ITypeInfo | typeInfo | The type information to act on. |
Returns
Type | Description |
---|---|
ITypeInfoLocalization | The type localization. |
GetLocalization(PropertyInfo)
Gets the localization for a System.Reflection.PropertyInfo.
Declaration
public static IMemberInfoLocalization GetLocalization(this PropertyInfo propertyInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.PropertyInfo | propertyInfo | The property information to act on. |
Returns
Type | Description |
---|---|
IMemberInfoLocalization | The property localization. |
GetLocalization(TypeInfo)
Gets the localization for a System.Reflection.TypeInfo.
Declaration
public static ITypeInfoLocalization GetLocalization(this TypeInfo typeInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.TypeInfo | typeInfo | The type information to act on. |
Returns
Type | Description |
---|---|
ITypeInfoLocalization | The type localization. |
GetLocalization(Type)
Gets the localization for a System.Type.
Declaration
public static ITypeInfoLocalization GetLocalization(this Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type to act on. |
Returns
Type | Description |
---|---|
ITypeInfoLocalization | The type localization. |