ProgressDelegate
(
status
, progress
)
|
A delegate for reporting progress. The progress value range is 0.0f to 1.0f.
Signature
delegate void Meta.Conduit.ConduitUtilities.ProgressDelegate(string status, float progress) Parameters status: stringprogress: floatReturns delegate void |
ContainsIgnoringWhitespace
(
stringToSearch
, value
)
|
Returns true if stringToSearch contains value when ignoring whitespace.
Signature
static bool Meta.Conduit.ConduitUtilities.ContainsIgnoringWhitespace(string stringToSearch, string value) Parameters stringToSearch: stringÂ
The string to search it.
value: stringÂ
The substring to look for.
Returns boolÂ
True if found. False otherwise.
|
DelimitWithUnderscores
(
input
)
|
Splits a string at word boundaries and delimits it with underscores.
Signature
static string Meta.Conduit.ConduitUtilities.DelimitWithUnderscores(string input) Parameters input: stringReturns string |
GetEntityEnumName
(
entityRole
)
|
Get sanitized entity class name
Signature
static string Meta.Conduit.ConduitUtilities.GetEntityEnumName(string entityRole) Parameters entityRole: stringÂ
Role of an entity
Returns stringÂ
Entity class name for specified role
|
GetEntityEnumValue
(
entityValue
)
|
Get sanitized entity value
Signature
static string Meta.Conduit.ConduitUtilities.GetEntityEnumValue(string entityValue) Parameters entityValue: stringÂ
The value of the entity.
Returns string |
IsNullableType
(
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.
Signature
static bool Meta.Conduit.ConduitUtilities.IsNullableType(this Type type) Parameters type: this TypeÂ
The type to check
Returns boolÂ
True if the type is nullable.
|
SanitizeName
(
input
)
|
Script that sanitizes string values to ensure they can be used as a class name
Signature
static string Meta.Conduit.ConduitUtilities.SanitizeName(string input) Parameters input: stringÂ
Initial string to sanitize
Returns stringÂ
Sanitized string
|
SanitizeString
(
input
)
|
Script that sanitizes string values to ensure they can be used in code
Signature
static string Meta.Conduit.ConduitUtilities.SanitizeString(string input) Parameters input: stringÂ
Initial string to sanitize
Returns stringÂ
Sanitized string
|
GetTypedParameterValue
(
formalParameter
, parameterValue
)
|
Returns a typed value that matches the parameter type if possible.
Signature
static object Meta.Conduit.ConduitUtilities.GetTypedParameterValue(ParameterInfo formalParameter, object parameterValue) Parameters formalParameter: ParameterInfoÂ
The formal parameter we are trying to supply
parameterValue: objectÂ
The raw value of the parameter.
Returns objectÂ
The value in the correct type if a conversion was possible. Null otherwise.
|
GetTypedParameterValue
(
parameterType
, parameterValue
)
|
Returns a typed value that matches the parameter type if possible.
Signature
static object Meta.Conduit.ConduitUtilities.GetTypedParameterValue(Type parameterType, object parameterValue) Parameters parameterType: TypeÂ
The data type we want to get the parameter mapped to.
parameterValue: objectÂ
The raw value of the parameter.
Returns objectÂ
The value in the correct type if a conversion was possible. Null otherwise.
|