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

ConduitUtilities Class

Utility class for Conduit.

Overview

Public Member Functions

delegate void
ProgressDelegate
( string status,
float progress )
A delegate for reporting progress. The progress value range is 0.0f to 1.0f.

Static Public Member Functions

static string
DelimitWithUnderscores
( string input )
Splits a string at word boundaries and delimits it with underscores.
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.
static bool
ContainsIgnoringWhitespace
( string stringToSearch,
string value )
Returns true if stringToSearch contains value when ignoring whitespace.
static string
GetEntityEnumName
( string entityRole )
Get sanitized entity class name
static string
GetEntityEnumValue
( string entityValue )
Get sanitized entity value
static string
SanitizeName
( string input )
Script that sanitizes string values to ensure they can be used as a class name
static string
SanitizeString
( string input )
Script that sanitizes string values to ensure they can be used in code

Object Data

static object
GetTypedParameterValue
( ParameterInfo formalParameter,
object parameterValue )
Returns a typed value that matches the parameter type if possible.
static object
GetTypedParameterValue
( Type parameterType,
object parameterValue )
Returns a typed value that matches the parameter type if possible.

Details

Member Functions

delegate void Meta.Conduit.ConduitUtilities.ProgressDelegate
( string status,
float progress )
A delegate for reporting progress. The progress value range is 0.0f to 1.0f.

Static Member Functions

static string Meta.Conduit.ConduitUtilities.DelimitWithUnderscores
( string input )
Splits a string at word boundaries and delimits it with underscores.
Parameters
input
Returns
static bool Meta.Conduit.ConduitUtilities.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 Meta.Conduit.ConduitUtilities.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 Meta.Conduit.ConduitUtilities.GetEntityEnumName
( string entityRole )
Get sanitized entity class name
Parameters
entityRole
Role of an entity
Returns
Entity class name for specified role
static string Meta.Conduit.ConduitUtilities.GetEntityEnumValue
( string entityValue )
Get sanitized entity value
Parameters
entityValue
The value of the entity.
Returns
static string Meta.Conduit.ConduitUtilities.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 Meta.Conduit.ConduitUtilities.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

static object Meta.Conduit.ConduitUtilities.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 Meta.Conduit.ConduitUtilities.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.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon