Class ObjectInfo
Assembly: PayrollEngine.Core.dll
Syntax
public static class ObjectInfo
Methods
ContainsProperty(Type, string)
Declaration
public static bool ContainsProperty(this Type type, string name)
Parameters
Returns
ContainsProperty(Type, string, Type)
Declaration
public static bool ContainsProperty(this Type type, string name, Type propertyType)
Parameters
Returns
GetFieldNames(Type)
Declaration
public static HashSet<string> GetFieldNames(this Type type)
Parameters
| Type |
Name |
Description |
| Type |
type |
|
Returns
GetProperties(Type)
Declaration
public static IList<PropertyInfo> GetProperties(Type type)
Parameters
| Type |
Name |
Description |
| Type |
type |
|
Returns
GetProperties<T>()
Declaration
public static IList<PropertyInfo> GetProperties<T>()
Returns
Type Parameters
GetProperty(Type, string)
Declaration
public static PropertyInfo GetProperty(this Type type, string name)
Parameters
Returns
GetPropertyTypes(Type)
Declaration
public static IDictionary<string, Type> GetPropertyTypes(this Type type)
Parameters
| Type |
Name |
Description |
| Type |
type |
|
Returns
GetPropertyValue(object, string)
Declaration
public static object GetPropertyValue(this object obj, string name)
Parameters
Returns
GetPropertyValue<T>(object, string, T)
Declaration
public static T GetPropertyValue<T>(this object obj, string name, T defaultValue = default)
Parameters
Returns
Type Parameters
ResolvePropertyValue(object, string)
Declaration
public static PropertyValue ResolvePropertyValue(this object obj, string expression)
Parameters
Returns
SetPropertyValue(object, string, object)
Declaration
public static void SetPropertyValue(this object obj, string name, object value)
Parameters