C# Class NStub.CSharp.BuildContext.KeynameFixer

Fix the Test-Key of a MemberBuildContext.
Show file Open project: Jedzia/NStub Class Usage Examples

Public Methods

Method Description
Fix ( string initial ) : string

Fixes the specified key.

At this time, simply "get_", "set_", "add_" and "remove_" is removed from the key, to allow build properties for both sides of CLR-Properties and CLR-Events.

KeynameFixer ( CodeNamespace codeNamespace, CodeTypeDeclaration testClassDeclaration, CodeTypeMember typeMember ) : System

Initializes a new instance of the KeynameFixer class.

Method Details

Fix() public method

Fixes the specified key.
At this time, simply "get_", "set_", "add_" and "remove_" is removed from the key, to allow build properties for both sides of CLR-Properties and CLR-Events.
public Fix ( string initial ) : string
initial string The initial key value.
return string

KeynameFixer() public method

Initializes a new instance of the KeynameFixer class.
public KeynameFixer ( CodeNamespace codeNamespace, CodeTypeDeclaration testClassDeclaration, CodeTypeMember typeMember ) : System
codeNamespace System.CodeDom.CodeNamespace The code namespace.
testClassDeclaration System.CodeDom.CodeTypeDeclaration The test class declaration.
typeMember System.CodeDom.CodeTypeMember The type member.
return System