C# Class Reinforced.Typings.Generators.ContextExtensions

Various extensions for settings
Afficher le fichier Open project: reinforced/Reinforced.Typings

Méthodes publiques

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

Méthode Description
ConvertToCamelCase ( string s ) : string
ConvertToPascalCase ( string s ) : string

Method Details

CamelCaseFromAttribute() public static méthode

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

ConditionallyConvertMethodNameToCamelCase() public static méthode

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

ConditionallyConvertMethodNameToPascalCase() public static méthode

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

ConditionallyConvertPropertyNameToCamelCase() public static méthode

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

PascalCaseFromAttribute() public static méthode

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