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. |
The function for creating the type info localization. |
Methods
| Improve this Doc View SourceGetLocalization(IPropertyInfo)
Gets the localization for a IProperty
Declaration
public static IMemberInfoLocalization GetLocalization(this IPropertyInfo propertyInfo)
Parameters
Type | Name | Description |
---|---|---|
IProperty |
propertyInfo | The property information to act on. |
Returns
Type | Description |
---|---|
IMember |
The property localization. |
GetLocalization(ITypeInfo)
Gets the localization for a IType
Declaration
public static ITypeInfoLocalization GetLocalization(this ITypeInfo typeInfo)
Parameters
Type | Name | Description |
---|---|---|
IType |
typeInfo | The type information to act on. |
Returns
Type | Description |
---|---|
IType |
The type localization. |
GetLocalization(PropertyInfo)
Gets the localization for a System.
Declaration
public static IMemberInfoLocalization GetLocalization(this PropertyInfo propertyInfo)
Parameters
Type | Name | Description |
---|---|---|
System. |
propertyInfo | The property information to act on. |
Returns
Type | Description |
---|---|
IMember |
The property localization. |
GetLocalization(TypeInfo)
Gets the localization for a System.
Declaration
public static ITypeInfoLocalization GetLocalization(this TypeInfo typeInfo)
Parameters
Type | Name | Description |
---|---|---|
System. |
typeInfo | The type information to act on. |
Returns
Type | Description |
---|---|
IType |
The type localization. |
GetLocalization(Type)
Gets the localization for a System.
Declaration
public static ITypeInfoLocalization GetLocalization(this Type type)
Parameters
Type | Name | Description |
---|---|---|
System. |
type | The type to act on. |
Returns
Type | Description |
---|---|
IType |
The type localization. |