A delegate for reporting progress. The progress value range is 0.0f to 1.0f.
Static Member Functions
static string DelimitWithUnderscores
( string input )
Splits a string at word boundaries and delimits it with underscores.
Parameters
input
Returns
static bool IsNullableType
( this Type type )
An extension method that returns true if the type is nullable. This is local version of the implementation in the Castle library to prevent build issues.
Parameters
type
The type to check
Returns
True if the type is nullable.
static bool ContainsIgnoringWhitespace
( string stringToSearch,
string value )
Returns true if stringToSearch contains value when ignoring whitespace.
Parameters
stringToSearch
The string to search it.
value
The substring to look for.
Returns
True if found. False otherwise.
static string GetEntityEnumName
( string entityRole )
Get sanitized entity class name
Parameters
entityRole
Role of an entity
Returns
Entity class name for specified role
static string GetEntityEnumValue
( string entityValue )
Get sanitized entity value
Parameters
entityValue
The value of the entity.
Returns
static string SanitizeName
( string input )
Script that sanitizes string values to ensure they can be used as a class name
Parameters
input
Initial string to sanitize
Returns
Sanitized string
static string SanitizeString
( string input )
Script that sanitizes string values to ensure they can be used in code
Parameters
input
Initial string to sanitize
Returns
Sanitized string
Object Data for package-static-func
static object GetTypedParameterValue
( ParameterInfo formalParameter,
object parameterValue )
Returns a typed value that matches the parameter type if possible.
Parameters
formalParameter
The formal parameter we are trying to supply
parameterValue
The raw value of the parameter.
Returns
The value in the correct type if a conversion was possible. Null otherwise.
static object GetTypedParameterValue
( Type parameterType,
object parameterValue )
Returns a typed value that matches the parameter type if possible.
Parameters
parameterType
The data type we want to get the parameter mapped to.
parameterValue
The raw value of the parameter.
Returns
The value in the correct type if a conversion was possible. Null otherwise.