Class ReflectionFieldsSetter
Provides a mechanism for setting specific fields to specific values.
Inheritance
System.Object
ReflectionFieldsSetter
Namespace: AlchemyBow.Core.IoC.Elements
Assembly: AlchemyBow.Core.dll
Syntax
public sealed class ReflectionFieldsSetter
Constructors
ReflectionFieldsSetter((FieldInfo, Object)[])
Creates an instance of the class.
Declaration
public ReflectionFieldsSetter((FieldInfo, object)[] fields)
Parameters
Type | Name | Description |
---|---|---|
System.ValueTuple<System.Reflection.FieldInfo, System.Object>[] | fields | An array of field-value pairs to be set. |
Methods
SetFields(Object)
Sets the values of the fields in the specified object.
Declaration
public void SetFields(object target)
Parameters
Type | Name | Description |
---|---|---|
System.Object | target | The object where the fields need to be set. |