Class ReflectionFieldsSetter
Provides a mechanism for setting specific fields to specific values.
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 |
---|---|---|
(FieldInfo, 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 |
---|---|---|
object | target | The object where the fields need to be set. |