Class ReflectionExtensions
Inheritance
ReflectionExtensions
Assembly: Acoustics.Shared.dll
Syntax
public static class ReflectionExtensions
Methods
|
Improve this Doc
View Source
GetFriendlyName(Type)
Declaration
public static string GetFriendlyName(this Type t)
Parameters
Type |
Name |
Description |
Type |
t |
|
Returns
|
Improve this Doc
View Source
GetGetterNames<TBase>()
Declaration
public static string[] GetGetterNames<TBase>()
Returns
Type Parameters
|
Improve this Doc
View Source
GetGetters<TBase, TType>()
Declaration
public static Dictionary<string, Func<TBase, TType>> GetGetters<TBase, TType>()
Returns
Type Parameters
Name |
Description |
TBase |
|
TType |
|
|
Improve this Doc
View Source
GetProperty<TModel>(Expression<Func<TModel, Object>>)
Gets the property from the expression.
Declaration
public static PropertyInfo GetProperty<TModel>(this Expression<Func<TModel, object>> expression)
Parameters
Returns
Type Parameters
Name |
Description |
TModel |
The type of the model.
|
|
Improve this Doc
View Source
GetPropertyInfo<TSource, TProperty>(Type, Expression<Func<TSource, TProperty>>)
Declaration
public static PropertyInfo GetPropertyInfo<TSource, TProperty>(this Type type, Expression<Func<TSource, TProperty>> propertyLambda)
Parameters
Returns
Type Parameters
Name |
Description |
TSource |
|
TProperty |
|
|
Improve this Doc
View Source
GetSetters<TBase, TType>()
Declaration
public static Dictionary<string, Action<TBase, TType>> GetSetters<TBase, TType>()
Returns
Type Parameters
Name |
Description |
TBase |
|
TType |
|
|
Improve this Doc
View Source
IsInstanceOfGenericType(Type, Object, out Type)
Declaration
public static bool IsInstanceOfGenericType(this Type genericType, object instance, out Type matchedType)
Parameters
Type |
Name |
Description |
Type |
genericType |
|
Object |
instance |
|
Type |
matchedType |
|
Returns
|
Improve this Doc
View Source
Declaration
public static bool PropertyInfoMetaDataEquality(this PropertyInfo propertyInfoA, PropertyInfo propertyInfoB)
Parameters
Returns