API reference
API reference
Select your platform
No SDKs available
No versions available

ConduitUtilities Class

Utility class for Conduit.

Methods

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: string
progress: float
Returns
delegate void

Static Methods

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: string
Returns
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

Internal Static Methods

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.