Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Class Extensions

OptimaJet.Workflow.Core.Extensions

public static class Extensions

Inheritance

  • System.Object

Methods

public static XElement SingleOrDefault(this XElement element, string name) #

Parameters

Name
Type
Description
element
XElement
name
String

Returns

Type
Description
XElement
public static Type ToNullableType(this Type type) #

Parameters

Name
Type
Description
type
Type

Returns

Type
Description
Type
public static bool IsNullable(this Type type) #

Parameters

Name
Type
Description
type
Type

Returns

Type
Description
Boolean
public static Type GetUnderlyingType(this Type type) #

Parameters

Name
Type
Description
type
Type

Returns

Type
Description
Type
public static object GetDefaultValue(this Type type) #

Parameters

Name
Type
Description
type
Type

Returns

Type
Description
Object
public static bool IsNumeric(this Type type) #

Parameters

Name
Type
Description
type
Type

Returns

Type
Description
Boolean
public static string ToLowerCaseString(this bool value) #

Parameters

Name
Type
Description
value
Boolean

Returns

Type
Description
String
public static bool ExtendedEquals(this object value, object valueToCompare) #

Parameters

Name
Type
Description
value
Object
valueToCompare
Object

Returns

Type
Description
Boolean
public static string ToFormattedString<T>(this List<T> value, bool quotate) #

Parameters

Name
Type
Description
value
List<T>
quotate
Boolean

Returns

Type
Description
String
public static string ToFormattedString<T>(this List<T> value, string delimeter, bool quotate) #

Parameters

Name
Type
Description
value
List<T>
delimeter
String
quotate
Boolean

Returns

Type
Description
String
public static bool TryGetValueIgnoreCase<TV>(this IDictionary<string, TV> dictionary, string key, out TV value) #

Parameters

Name
Type
Description
dictionary
IDictionary<String,{TV>
key
String
value
{TV}

Returns

Type
Description
Boolean
public static dynamic ToDynamic(this Dictionary<string, object> dictionary) #

Parameters

Name
Type
Description
dictionary
Dictionary<Object>

Returns

Type
Description
dynamic
public static string ToValidCSharpIdentifierName(this string originalString) #

Parameters

Name
Type
Description
originalString
String

Returns

Type
Description
String
public static T? FirstOrNull<T>(this IEnumerable<T> items, Func<T, bool> predicate) where T : struct #

Parameters

Name
Type
Description
items
IEnumerable<T>
predicate
Func<Boolean>

Returns

Type
Description
Nullable<T>
public static bool IsSimpleDynamicType(this Type type) #

Parameters

Name
Type
Description
type
Type

Returns

Type
Description
Boolean
public static T CastAs<T>(this object obj) #

Parameters

Name
Type
Description
obj
Object

Returns

Type
Description
{T}
public static bool TryCast<T>(this object obj, out T newValue) #

Parameters

Name
Type
Description
obj
Object
newValue
{T}

Returns

Type
Description
Boolean