Class ObjectExtensions
Namespace: YVR.Utilities
Assembly: YVR.Utilities.Runtime.dll
Syntax
public static class ObjectExtensions
Methods
Name | Description |
---|---|
GetEnumerableElementType(object) | Get element type of an generic enumerable object. |
IsGenericEnumerable(object) | Determinate whether target object is belongs to generic enumerable, e.g. List, Dictionary, type or not. |
ReflectEquals(object, object) | Using reflection to determinate whether object is equal to or not. |
ReflectionSequenceEqual(object, object) | Call SequenceEqual function on two generic enumerable object |
TryGetFieldValue<T>(object, string, out T, BindingFlags) | Get object field value by reflection |
TryGetPropertyValue<T>(object, string, out T, BindingFlags) | Get object property value by reflection |
TrySetFieldValue<T>(object, string, T, BindingFlags) | Set object field value by reflection |
TrySetPropertyValue<T>(object, string, T, BindingFlags) | Set object property value by reflection |