C# Class TerrificNet.ViewEngine.NamingRule

Inheritance: INamingRule
Show file Open project: namics/TerrificNet Class Usage Examples

Public Methods

Method Description
GetClassName ( Newtonsoft.Json.Schema.JSchema schema, string propertyName ) : string
GetClassNameFromArrayItem ( Newtonsoft.Json.Schema.JSchema schema, string propertyName ) : string
GetNamespaceName ( Newtonsoft.Json.Schema.JSchema schema ) : string
GetPropertyName ( string input ) : string

Private Methods

Method Description
ConvertToPascalCase ( string input ) : string
EvaluatePascal ( Match match ) : string
ExtractClassName ( string input, string &namespaceName ) : string
IsWordUpper ( string word ) : bool
NormalizeName ( string input ) : string
Singular ( string propertyName ) : string

Method Details

GetClassName() public method

public GetClassName ( Newtonsoft.Json.Schema.JSchema schema, string propertyName ) : string
schema Newtonsoft.Json.Schema.JSchema
propertyName string
return string

GetClassNameFromArrayItem() public method

public GetClassNameFromArrayItem ( Newtonsoft.Json.Schema.JSchema schema, string propertyName ) : string
schema Newtonsoft.Json.Schema.JSchema
propertyName string
return string

GetNamespaceName() public method

public GetNamespaceName ( Newtonsoft.Json.Schema.JSchema schema ) : string
schema Newtonsoft.Json.Schema.JSchema
return string

GetPropertyName() public method

public GetPropertyName ( string input ) : string
input string
return string