Skip to main content

Introducing Formengine - The New Formbuilder, try for FREE formengine.io.

Class Extensions

Inheritance

↳ object

    ↳ Extensions

Inherited Members

Equals(object)

Equals(object, object)

GetHashCode()

GetType()

MemberwiseClone()

ReferenceEquals(object, object)

ToString()

Namespace: OptimaJet.Workflow.Core

Assembly: OptimaJet.Workflow.Core.dll

Syntax
public static class Extensions

Methods

SingleOrDefault(XElement, string)

Declaration
public static XElement SingleOrDefault(this XElement element, string name)
Parameters
TypeNameDescription
XElementelement
stringname
Returns
TypeDescription
XElement

ToNullableType(Type)

Declaration
public static Type ToNullableType(this Type type)
Parameters
TypeNameDescription
Typetype
Returns
TypeDescription
Type

IsNullable(Type)

Declaration
public static bool IsNullable(this Type type)
Parameters
TypeNameDescription
Typetype
Returns
TypeDescription
bool

GetUnderlyingType(Type)

Declaration
public static Type GetUnderlyingType(this Type type)
Parameters
TypeNameDescription
Typetype
Returns
TypeDescription
Type

GetDefaultValue(Type)

Declaration
public static object GetDefaultValue(this Type type)
Parameters
TypeNameDescription
Typetype
Returns
TypeDescription
object

IsNumeric(Type)

Declaration
public static bool IsNumeric(this Type type)
Parameters
TypeNameDescription
Typetype
Returns
TypeDescription
bool

ToLowerCaseString(bool)

Declaration
public static string ToLowerCaseString(this bool value)
Parameters
TypeNameDescription
boolvalue
Returns
TypeDescription
string

ExtendedEquals(object, object)

Declaration
public static bool ExtendedEquals(this object value, object valueToCompare)
Parameters
TypeNameDescription
objectvalue
objectvalueToCompare
Returns
TypeDescription
bool

ToFormattedString<T>(List<T>, bool)

Declaration
public static string ToFormattedString<T>(this List<T> value, bool quotate)
Parameters
TypeNameDescription
List<T>value
boolquotate
Returns
TypeDescription
string

ToFormattedString<T>(List<T>, string, bool)

Declaration
public static string ToFormattedString<T>(this List<T> value, string delimeter, bool quotate)
Parameters
TypeNameDescription
List<T>value
stringdelimeter
boolquotate
Returns
TypeDescription
string

TryGetValueIgnoreCase<TV>(IDictionary<string, TV>, string, out TV)

Declaration
public static bool TryGetValueIgnoreCase<TV>(this IDictionary<string, TV> dictionary, string key, out TV value)
Parameters
TypeNameDescription
IDictionary<string, TV>dictionary
stringkey
{TV}value
Returns
TypeDescription
bool

ToDynamic(Dictionary<string, object>)

Declaration
public static dynamic ToDynamic(this Dictionary<string, object> dictionary)
Parameters
TypeNameDescription
Dictionary<string, object>dictionary
Returns
TypeDescription
dynamic

ToValidCSharpIdentifierName(string)

Declaration
public static string ToValidCSharpIdentifierName(this string originalString)
Parameters
TypeNameDescription
stringoriginalString
Returns
TypeDescription
string

FirstOrNull<T>(IEnumerable<T>, Func<T, bool>)

Declaration
public static T? FirstOrNull<T>(this IEnumerable<T> items, Func<T, bool> predicate) where T : struct
Parameters
TypeNameDescription
IEnumerable<T>items
Func<T, bool>predicate
Returns
TypeDescription
T?

IsSimpleDynamicType(Type)

Declaration
public static bool IsSimpleDynamicType(this Type type)
Parameters
TypeNameDescription
Typetype
Returns
TypeDescription
bool

CastAs<T>(object)

Declaration
public static T CastAs<T>(this object obj)
Parameters
TypeNameDescription
objectobj
Returns
TypeDescription
{T}

TryCast<T>(object, out T)

Declaration
public static bool TryCast<T>(this object obj, out T newValue)
Parameters
TypeNameDescription
objectobj
{T}newValue
Returns
TypeDescription
bool