C# Class Reinforced.Typings.Generators.ContextExtensions

Various extensions for settings
Datei anzeigen Open project: reinforced/Reinforced.Typings

Public Methods

Method Description
CamelCaseFromAttribute ( this member, string regularName ) : string

Conditionally (based on attribute setting) turns member name to camelCase

ConditionallyConvertMethodNameToCamelCase ( this context, string regularName ) : string

Conditionally (based on settings) turns method name to camelCase

ConditionallyConvertMethodNameToPascalCase ( this context, string regularName ) : string

Conditionally (based on settings) turns method name to PascalCase

ConditionallyConvertPropertyNameToCamelCase ( this context, string regularName ) : string

Conditionally (based on settings) turns property name to camelCase

PascalCaseFromAttribute ( this member, string regularName ) : string

Conditionally (based on attribute setting) turns member name to PascalCase

Private Methods

Method Description
ConvertToCamelCase ( string s ) : string
ConvertToPascalCase ( string s ) : string

Method Details

CamelCaseFromAttribute() public static method

Conditionally (based on attribute setting) turns member name to camelCase
public static CamelCaseFromAttribute ( this member, string regularName ) : string
member this Member
regularName string Regular property name
return string

ConditionallyConvertMethodNameToCamelCase() public static method

Conditionally (based on settings) turns method name to camelCase
public static ConditionallyConvertMethodNameToCamelCase ( this context, string regularName ) : string
context this Settings object
regularName string Regular method name
return string

ConditionallyConvertMethodNameToPascalCase() public static method

Conditionally (based on settings) turns method name to PascalCase
public static ConditionallyConvertMethodNameToPascalCase ( this context, string regularName ) : string
context this Settings object
regularName string Regular method name
return string

ConditionallyConvertPropertyNameToCamelCase() public static method

Conditionally (based on settings) turns property name to camelCase
public static ConditionallyConvertPropertyNameToCamelCase ( this context, string regularName ) : string
context this Settings object
regularName string Regular property name
return string

PascalCaseFromAttribute() public static method

Conditionally (based on attribute setting) turns member name to PascalCase
public static PascalCaseFromAttribute ( this member, string regularName ) : string
member this Member
regularName string Regular property name
return string