C# Class NStub.CSharp.ObjectGeneration.Builders.PropertyBuilderData

Stores information about a test method for a property.
Inheritance: IBuilderData
Datei anzeigen Open project: Jedzia/NStub

Public Methods

Method Description
GetData ( ) : object

Gets the data of this instance.

HasDataForType ( IMemberBuilder builder ) : bool

Determines whether this instance holds data for the specified builder type.

SetData ( object data ) : void

Sets the data via the specified method info.

SetViaAccessorName ( MethodInfo methodInfo ) : void

Sets the data of the GetAccessor and SetAccessor via the name of the specified methodInfo.

Method Details

GetData() public method

Gets the data of this instance.
public GetData ( ) : object
return object

HasDataForType() public method

Determines whether this instance holds data for the specified builder type.
public HasDataForType ( IMemberBuilder builder ) : bool
builder IMemberBuilder The requesting builder.
return bool

SetData() public method

Sets the data via the specified method info.
public SetData ( object data ) : void
data object The data to store.
return void

SetViaAccessorName() public method

Sets the data of the GetAccessor and SetAccessor via the name of the specified methodInfo.
/// The specified is not from a property getter or setter.
public SetViaAccessorName ( MethodInfo methodInfo ) : void
methodInfo System.Reflection.MethodInfo The info about the property accessor.
return void