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: P42.Utils
    Assembly: P42.Utils.dll
    Syntax
    public static class ReflectionExtensions

    Methods

    | Improve this Doc View Source

    CallerFilePath(String)

    Declaration
    public static string CallerFilePath(string callerPath = null)
    Parameters
    Type Name Description
    String callerPath
    Returns
    Type Description
    String
    | Improve this Doc View Source

    CallerLineNumber(Int32)

    Declaration
    public static int CallerLineNumber(int lineNumber = 0)
    Parameters
    Type Name Description
    Int32 lineNumber
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    CallerMemberName(String)

    Declaration
    public static string CallerMemberName(string callerName = null)
    Parameters
    Type Name Description
    String callerName
    Returns
    Type Description
    String
    | Improve this Doc View Source

    CallerString(String, Int32)

    Declaration
    public static string CallerString(string callerName = null, int lineNumber = 0)
    Parameters
    Type Name Description
    String callerName
    Int32 lineNumber
    Returns
    Type Description
    String
    | Improve this Doc View Source

    CallMethod(Object, String, Object[])

    Declaration
    public static object CallMethod(this object obj, string methodName, object[] parameters)
    Parameters
    Type Name Description
    Object obj
    String methodName
    Object[] parameters
    Returns
    Type Description
    Object
    | Improve this Doc View Source

    GetApplicationAssembly()

    Declaration
    public static Assembly GetApplicationAssembly()
    Returns
    Type Description
    Assembly
    | Improve this Doc View Source

    GetAssemblies()

    Declaration
    public static List<Assembly> GetAssemblies()
    Returns
    Type Description
    List<Assembly>
    | Improve this Doc View Source

    GetAssembly(Type)

    Declaration
    public static Assembly GetAssembly(this Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    Assembly
    | Improve this Doc View Source

    GetAssemblyByName(String)

    Declaration
    public static Assembly GetAssemblyByName(string name)
    Parameters
    Type Name Description
    String name
    Returns
    Type Description
    Assembly
    | Improve this Doc View Source

    GetChildClassesOf(Type)

    Declaration
    public static IEnumerable<Type> GetChildClassesOf(Type parentType)
    Parameters
    Type Name Description
    Type parentType
    Returns
    Type Description
    IEnumerable<Type>
    | Improve this Doc View Source

    GetFieldInfo(Type, String)

    Declaration
    public static FieldInfo GetFieldInfo(this Type type, string fieldName)
    Parameters
    Type Name Description
    Type type
    String fieldName
    Returns
    Type Description
    FieldInfo
    | Improve this Doc View Source

    GetFieldValue(Object, String)

    Declaration
    public static object GetFieldValue(this object obj, string fieldName)
    Parameters
    Type Name Description
    Object obj
    String fieldName
    Returns
    Type Description
    Object
    | Improve this Doc View Source

    GetFieldValue(Type, String)

    Declaration
    public static object GetFieldValue(this Type type, string fieldName)
    Parameters
    Type Name Description
    Type type
    String fieldName
    Returns
    Type Description
    Object
    | Improve this Doc View Source

    GetMethodInfo(Type, String)

    Declaration
    public static MethodInfo GetMethodInfo(this Type type, string methodName)
    Parameters
    Type Name Description
    Type type
    String methodName
    Returns
    Type Description
    MethodInfo
    | Improve this Doc View Source

    GetProperties(Object)

    Declaration
    public static IEnumerable<PropertyInfo> GetProperties(this object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    IEnumerable<PropertyInfo>
    | Improve this Doc View Source

    GetProperty(Object, String)

    Declaration
    public static PropertyInfo GetProperty(this object obj, string propertyName)
    Parameters
    Type Name Description
    Object obj
    String propertyName
    Returns
    Type Description
    PropertyInfo
    | Improve this Doc View Source

    GetPropertyInfo(Type, String)

    Declaration
    public static PropertyInfo GetPropertyInfo(this Type type, string propertyName)
    Parameters
    Type Name Description
    Type type
    String propertyName
    Returns
    Type Description
    PropertyInfo
    | Improve this Doc View Source

    GetPropertyValue(Object, String)

    Declaration
    public static object GetPropertyValue(this object obj, string propertyName)
    Parameters
    Type Name Description
    Object obj
    String propertyName
    Returns
    Type Description
    Object
    | Improve this Doc View Source

    GetPropertyValue(Type, String)

    Declaration
    public static object GetPropertyValue(this Type type, string fieldName)
    Parameters
    Type Name Description
    Type type
    String fieldName
    Returns
    Type Description
    Object
    | Improve this Doc View Source

    HasProperty(Object, String)

    Declaration
    public static bool HasProperty(this object obj, string propertyName)
    Parameters
    Type Name Description
    Object obj
    String propertyName
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    PropertyExists(Object, String)

    Declaration
    public static bool PropertyExists(this object obj, string propertyName)
    Parameters
    Type Name Description
    Object obj
    String propertyName
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    PropertyNames(Object)

    Declaration
    public static List<string> PropertyNames(this object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    List<String>
    | Improve this Doc View Source

    SetFieldValue(Object, String, Object)

    Declaration
    public static void SetFieldValue(this object obj, string fieldName, object val)
    Parameters
    Type Name Description
    Object obj
    String fieldName
    Object val
    | Improve this Doc View Source

    SetPropertyValue(Object, String, Object)

    Declaration
    public static void SetPropertyValue(this object obj, string propertyName, object val)
    Parameters
    Type Name Description
    Object obj
    String propertyName
    Object val
    | Improve this Doc View Source

    SimpleQualifiedTypeName(Type)

    Declaration
    public static string SimpleQualifiedTypeName(this Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    String
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018 42nd Parallel