Class ObjectHelper
public static class ObjectHelper
- Inheritance
-
ObjectHelper
- Inherited Members
Methods
TrySetProperty<TObject, TValue>(TObject, Expression<Func<TObject, TValue>>, Func<TObject, TValue>, params Type[]?)
public static void TrySetProperty<TObject, TValue>(TObject obj, Expression<Func<TObject, TValue>> propertySelector, Func<TObject, TValue> valueFactory, params Type[]? ignoreAttributeTypes)
Parameters
obj
TObjectpropertySelector
Expression<Func<TObject, TValue>>valueFactory
Func<TObject, TValue>ignoreAttributeTypes
Type[]
Type Parameters
TObject
TValue
TrySetProperty<TObject, TValue>(TObject, Expression<Func<TObject, TValue>>, Func<TValue>, params Type[])
public static void TrySetProperty<TObject, TValue>(TObject obj, Expression<Func<TObject, TValue>> propertySelector, Func<TValue> valueFactory, params Type[] ignoreAttributeTypes)
Parameters
obj
TObjectpropertySelector
Expression<Func<TObject, TValue>>valueFactory
Func<TValue>ignoreAttributeTypes
Type[]
Type Parameters
TObject
TValue