C# Class NStub.CSharp.BuildContext.KeynameFixer

Fix the Test-Key of a MemberBuildContext.
Afficher le fichier Open project: Jedzia/NStub Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat string

KeynameFixer() public méthode

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.
Résultat System