C# Class MixinRefactoring.StringExtension

Mostra file Open project: pgenfer/mixinSharp

Public Methods

Method Description
ConvertFieldNameToParameterName ( this fieldName ) : string
ConvertTypeNameToFieldName ( this typeName ) : string

tries to convert a useful field name from a given type name. Leading "I"s will be removed, also trailing "Mixin"s. Example: INamedMixin => _namedMixin NamedMixin => _namedMixin

Method Details

ConvertFieldNameToParameterName() public static method

public static ConvertFieldNameToParameterName ( this fieldName ) : string
fieldName this
return string

ConvertTypeNameToFieldName() public static method

tries to convert a useful field name from a given type name. Leading "I"s will be removed, also trailing "Mixin"s. Example: INamedMixin => _namedMixin NamedMixin => _namedMixin
public static ConvertTypeNameToFieldName ( this typeName ) : string
typeName this
return string