Show / Hide Table of Contents

Class ObjectHelper

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

Methods

TrySetProperty<TObject, TValue>(TObject, Expression<Func<TObject, TValue>>, Func<TObject, TValue>, params Type[]?)

Declaration
public static void TrySetProperty<TObject, TValue>(TObject obj, Expression<Func<TObject, TValue>> propertySelector, Func<TObject, TValue> valueFactory, params Type[]? ignoreAttributeTypes)
Parameters
Type Name Description
TObject obj
Expression<Func<TObject, TValue>> propertySelector
Func<TObject, TValue> valueFactory
Type[] ignoreAttributeTypes
Type Parameters
Name Description
TObject
TValue

TrySetProperty<TObject, TValue>(TObject, Expression<Func<TObject, TValue>>, Func<TValue>, params Type[])

Declaration
public static void TrySetProperty<TObject, TValue>(TObject obj, Expression<Func<TObject, TValue>> propertySelector, Func<TValue> valueFactory, params Type[] ignoreAttributeTypes)
Parameters
Type Name Description
TObject obj
Expression<Func<TObject, TValue>> propertySelector
Func<TValue> valueFactory
Type[] ignoreAttributeTypes
Type Parameters
Name Description
TObject
TValue
In this article
Back to top Powered by ABP.IO Platform