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
System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><TObject, TValue>> propertySelector
System.Func<T, TResult><TObject, TValue> valueFactory
System.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
System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><TObject, TValue>> propertySelector
System.Func<TResult><TValue> valueFactory
System.Type[] ignoreAttributeTypes
Type Parameters
Name Description
TObject
TValue
In This Article
Back to top Powered by Volosoft