C# Class Hawkeye.Reflection.FieldAccessor

ファイルを表示 Open project: odalet/Hawkeye2 Class Usage Examples

Public Methods

Method Description
FieldAccessor ( Type fieldTargetType, string fieldName ) : System

Initializes a new instance of the FieldAccessor class.

FieldAccessor ( object fieldTarget, string fieldName ) : System

Initializes a new instance of the FieldAccessor class.

Get ( object operationTarget = null ) : object
Set ( object newValue, object operationTarget = null ) : void

Private Methods

Method Description
FieldAccessor ( ) : System

Initializes the FieldAccessor class.

FieldAccessor ( Type fieldTargetType, object fieldTarget, string fieldName ) : System

Prevents a default instance of the FieldAccessor class from being created.

FindField ( BindingFlags flags ) : FieldInfo

Method Details

FieldAccessor() public method

Initializes a new instance of the FieldAccessor class.
public FieldAccessor ( Type fieldTargetType, string fieldName ) : System
fieldTargetType System.Type Type of the target.
fieldName string Name of the field.
return System

FieldAccessor() public method

Initializes a new instance of the FieldAccessor class.
public FieldAccessor ( object fieldTarget, string fieldName ) : System
fieldTarget object The target.
fieldName string Name of the field.
return System

Get() public method

public Get ( object operationTarget = null ) : object
operationTarget object
return object

Set() public method

public Set ( object newValue, object operationTarget = null ) : void
newValue object
operationTarget object
return void