CalculateFunding.Tests.Common.Helpers.ReflectionExtensions.SetWithNonePublicSetter C# (CSharp) Метод

SetWithNonePublicSetter() публичный статический Метод

public static SetWithNonePublicSetter ( target, Expression property, value ) : void
property Expression
Результат void
        public static void SetWithNonePublicSetter<TTarget, TPropertyType>(this TTarget target,
            Expression<Func<TTarget, TPropertyType>> property,
            TPropertyType value)
        {
            PropertyInfo propertyInfo = GetPropertyInfo(property);
            
            propertyInfo.SetValue(target, value);
        }