Search Results for

    Show / Hide Table of Contents

    Class ReflectionExtensions

    Inheritance
    Object
    ReflectionExtensions
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: System
    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
    Type Description
    String
    | Improve this Doc View Source

    GetGetterNames<TBase>()

    Declaration
    public static string[] GetGetterNames<TBase>()
    Returns
    Type Description
    String[]
    Type Parameters
    Name Description
    TBase
    | Improve this Doc View Source

    GetGetters<TBase, TType>()

    Declaration
    public static Dictionary<string, Func<TBase, TType>> GetGetters<TBase, TType>()
    Returns
    Type Description
    Dictionary<String, Func<TBase, TType>>
    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
    Type Name Description
    Expression<Func<TModel, Object>> expression

    The expression.

    Returns
    Type Description
    PropertyInfo

    The PropertyInfo for the expression.

    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
    Type Name Description
    Type type
    Expression<Func<TSource, TProperty>> propertyLambda
    Returns
    Type Description
    PropertyInfo
    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 Description
    Dictionary<String, Action<TBase, TType>>
    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
    Type Description
    Boolean
    | Improve this Doc View Source

    PropertyInfoMetaDataEquality(PropertyInfo, PropertyInfo)

    Declaration
    public static bool PropertyInfoMetaDataEquality(this PropertyInfo propertyInfoA, PropertyInfo propertyInfoB)
    Parameters
    Type Name Description
    PropertyInfo propertyInfoA
    PropertyInfo propertyInfoB
    Returns
    Type Description
    Boolean
    • Improve this Doc
    • View Source
    In This Article
    Generated by DocFX AP docs version: 21.7.0.4-master-e26127a50d7bd7472d47288f10e61014fb981f7f-DIRTY-CI:144 Back to top