Show / Hide Table of Contents

Class ObjectInfo

Inheritance
object
ObjectInfo
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: PayrollEngine
Assembly: PayrollEngine.Core.dll
Syntax
public static class ObjectInfo

Methods

ContainsProperty(Type, string)

Declaration
public static bool ContainsProperty(this Type type, string name)
Parameters
Type Name Description
Type type
string name
Returns
Type Description
bool

ContainsProperty(Type, string, Type)

Declaration
public static bool ContainsProperty(this Type type, string name, Type propertyType)
Parameters
Type Name Description
Type type
string name
Type propertyType
Returns
Type Description
bool

GetFieldNames(Type)

Declaration
public static HashSet<string> GetFieldNames(this Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
HashSet<string>

GetProperties(Type)

Declaration
public static IList<PropertyInfo> GetProperties(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
IList<PropertyInfo>

GetProperties<T>()

Declaration
public static IList<PropertyInfo> GetProperties<T>()
Returns
Type Description
IList<PropertyInfo>
Type Parameters
Name Description
T

GetProperty(Type, string)

Declaration
public static PropertyInfo GetProperty(this Type type, string name)
Parameters
Type Name Description
Type type
string name
Returns
Type Description
PropertyInfo

GetPropertyTypes(Type)

Declaration
public static IDictionary<string, Type> GetPropertyTypes(this Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
IDictionary<string, Type>

GetPropertyValue(object, string)

Declaration
public static object GetPropertyValue(this object obj, string name)
Parameters
Type Name Description
object obj
string name
Returns
Type Description
object

GetPropertyValue<T>(object, string, T)

Declaration
public static T GetPropertyValue<T>(this object obj, string name, T defaultValue = default)
Parameters
Type Name Description
object obj
string name
T defaultValue
Returns
Type Description
T
Type Parameters
Name Description
T

ResolvePropertyValue(object, string)

Declaration
public static PropertyValue ResolvePropertyValue(this object obj, string expression)
Parameters
Type Name Description
object obj
string expression
Returns
Type Description
PropertyValue

SetPropertyValue(object, string, object)

Declaration
public static void SetPropertyValue(this object obj, string name, object value)
Parameters
Type Name Description
object obj
string name
object value
☀
☾
Back to top Generated by DocFX