Table of Contents

Class ObjectHelper

Namespace
Volo.Abp
Assembly
Volo.Abp.Core.dll
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 TObject
propertySelector 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 TObject
propertySelector Expression<Func<TObject, TValue>>
valueFactory Func<TValue>
ignoreAttributeTypes Type[]

Type Parameters

TObject
TValue