C# Class DynamicFluentBuilder.Net.Utility

Show file Open project: NullVoxPopuli/DynamicFluentBuilder.Net

Public Methods

Method Description
DefaultValueForType ( Type t ) : object

for use when a constructor parameter doesn't have a user-defined default value

GetParameterNames ( ParameterInfo parameters ) : List
PublicNameToPrivate ( string publicName ) : string

converts FieldName to _fieldName

PublicNameToVariableName ( string publicName ) : string

converts to camelCase from PascalCase

RemoveWith ( string methodName ) : string
VariableNameToPublicName ( string variableName ) : string

converts PascalCase to camelCase

Method Details

DefaultValueForType() public static method

for use when a constructor parameter doesn't have a user-defined default value
public static DefaultValueForType ( Type t ) : object
t System.Type
return object

GetParameterNames() public static method

public static GetParameterNames ( ParameterInfo parameters ) : List
parameters System.Reflection.ParameterInfo
return List

PublicNameToPrivate() public static method

converts FieldName to _fieldName
public static PublicNameToPrivate ( string publicName ) : string
publicName string
return string

PublicNameToVariableName() public static method

converts to camelCase from PascalCase
public static PublicNameToVariableName ( string publicName ) : string
publicName string
return string

RemoveWith() public static method

public static RemoveWith ( string methodName ) : string
methodName string
return string

VariableNameToPublicName() public static method

converts PascalCase to camelCase
public static VariableNameToPublicName ( string variableName ) : string
variableName string
return string