Class Extensions
OptimaJet.Workflow.Core.Extensions
Namespace: OptimaJet.Workflow.Core
public static class ExtensionsInheritance
- System.Object
Methods
public static XElement SingleOrDefault(this XElement element, string name) #Parameters
Name
Type
Description
elementXElementnameStringReturns
Type
Description
XElementpublic static Type ToNullableType(this Type type) #Parameters
Name
Type
Description
typeTypeReturns
Type
Description
Typepublic static bool IsNullable(this Type type) #Parameters
Name
Type
Description
typeTypeReturns
Type
Description
Booleanpublic static Type GetUnderlyingType(this Type type) #Parameters
Name
Type
Description
typeTypeReturns
Type
Description
Typepublic static object GetDefaultValue(this Type type) #Parameters
Name
Type
Description
typeTypeReturns
Type
Description
Objectpublic static bool IsNumeric(this Type type) #Parameters
Name
Type
Description
typeTypeReturns
Type
Description
Booleanpublic static string ToLowerCaseString(this bool value) #Parameters
Name
Type
Description
valueBooleanReturns
Type
Description
Stringpublic static bool ExtendedEquals(this object value, object valueToCompare) #Parameters
Name
Type
Description
valueObjectvalueToCompareObjectReturns
Type
Description
Booleanpublic static string ToFormattedString<T>(this List<T> value, bool quotate) #Parameters
Name
Type
Description
valueList<T>quotateBooleanReturns
Type
Description
Stringpublic static string ToFormattedString<T>(this List<T> value, string delimeter, bool quotate) #Parameters
Name
Type
Description
valueList<T>delimeterStringquotateBooleanReturns
Type
Description
Stringpublic static bool TryGetValueIgnoreCase<TV>(this IDictionary<string, TV> dictionary, string key, out TV value) #Parameters
Name
Type
Description
dictionaryIDictionary<String,{TV>keyStringvalue{TV}Returns
Type
Description
Booleanpublic static dynamic ToDynamic(this Dictionary<string, object> dictionary) #Parameters
Name
Type
Description
dictionaryDictionary<Object>Returns
Type
Description
dynamicpublic static string ToValidCSharpIdentifierName(this string originalString) #Parameters
Name
Type
Description
originalStringStringReturns
Type
Description
Stringpublic static T? FirstOrNull<T>(this IEnumerable<T> items, Func<T, bool> predicate) where T : struct #Parameters
Name
Type
Description
itemsIEnumerable<T>predicateFunc<Boolean>Returns
Type
Description
Nullable<T>public static bool IsSimpleDynamicType(this Type type) #Parameters
Name
Type
Description
typeTypeReturns
Type
Description
Booleanpublic static T CastAs<T>(this object obj) #Parameters
Name
Type
Description
objObjectReturns
Type
Description
{T}public static bool TryCast<T>(this object obj, out T newValue) #Parameters
Name
Type
Description
objObjectnewValue{T}Returns
Type
Description
Boolean