Class ReflectionExtensions
Inheritance
ReflectionExtensions
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
|
Improve this Doc
View Source
CallerLineNumber(Int32)
Declaration
public static int CallerLineNumber(int lineNumber = 0)
Parameters
Type |
Name |
Description |
Int32 |
lineNumber |
|
Returns
|
Improve this Doc
View Source
CallerMemberName(String)
Declaration
public static string CallerMemberName(string callerName = null)
Parameters
Type |
Name |
Description |
String |
callerName |
|
Returns
|
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
|
Improve this Doc
View Source
CallMethod(Object, String, Object[])
Declaration
public static object CallMethod(this object obj, string methodName, object[] parameters)
Parameters
Returns
|
Improve this Doc
View Source
GetApplicationAssembly()
Declaration
public static Assembly GetApplicationAssembly()
Returns
|
Improve this Doc
View Source
GetAssemblies()
Declaration
public static List<Assembly> GetAssemblies()
Returns
|
Improve this Doc
View Source
GetAssembly(Type)
Declaration
public static Assembly GetAssembly(this Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
|
Improve this Doc
View Source
GetAssemblyByName(String)
Declaration
public static Assembly GetAssemblyByName(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
GetChildClassesOf(Type)
Declaration
public static IEnumerable<Type> GetChildClassesOf(Type parentType)
Parameters
Type |
Name |
Description |
Type |
parentType |
|
Returns
|
Improve this Doc
View Source
GetFieldInfo(Type, String)
Declaration
public static FieldInfo GetFieldInfo(this Type type, string fieldName)
Parameters
Returns
|
Improve this Doc
View Source
GetFieldValue(Object, String)
Declaration
public static object GetFieldValue(this object obj, string fieldName)
Parameters
Returns
|
Improve this Doc
View Source
GetFieldValue(Type, String)
Declaration
public static object GetFieldValue(this Type type, string fieldName)
Parameters
Returns
|
Improve this Doc
View Source
GetMethodInfo(Type, String)
Declaration
public static MethodInfo GetMethodInfo(this Type type, string methodName)
Parameters
Returns
|
Improve this Doc
View Source
GetProperties(Object)
Declaration
public static IEnumerable<PropertyInfo> GetProperties(this object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
|
Improve this Doc
View Source
GetProperty(Object, String)
Declaration
public static PropertyInfo GetProperty(this object obj, string propertyName)
Parameters
Returns
|
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
|
Improve this Doc
View Source
GetPropertyValue(Object, String)
Declaration
public static object GetPropertyValue(this object obj, string propertyName)
Parameters
Returns
|
Improve this Doc
View Source
GetPropertyValue(Type, String)
Declaration
public static object GetPropertyValue(this Type type, string fieldName)
Parameters
Returns
|
Improve this Doc
View Source
HasProperty(Object, String)
Declaration
public static bool HasProperty(this object obj, string propertyName)
Parameters
Returns
|
Improve this Doc
View Source
PropertyExists(Object, String)
Declaration
public static bool PropertyExists(this object obj, string propertyName)
Parameters
Returns
|
Improve this Doc
View Source
PropertyNames(Object)
Declaration
public static List<string> PropertyNames(this object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
|
Improve this Doc
View Source
SetFieldValue(Object, String, Object)
Declaration
public static void SetFieldValue(this object obj, string fieldName, object val)
Parameters
|
Improve this Doc
View Source
SetPropertyValue(Object, String, Object)
Declaration
public static void SetPropertyValue(this object obj, string propertyName, object val)
Parameters
|
Improve this Doc
View Source
SimpleQualifiedTypeName(Type)
Declaration
public static string SimpleQualifiedTypeName(this Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns