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
Syntaxpublic static class Extensions
Methods
SingleOrDefault(XElement, string)
Declarationpublic static XElement SingleOrDefault(this XElement element, string name)
Type | Name | Description |
---|---|---|
XElement | element | |
string | name |
Type | Description |
---|---|
XElement |
ToNullableType(Type)
Declarationpublic static Type ToNullableType(this Type type)
Type | Name | Description |
---|---|---|
Type | type |
Type | Description |
---|---|
Type |
IsNullable(Type)
Declarationpublic static bool IsNullable(this Type type)
Type | Name | Description |
---|---|---|
Type | type |
Type | Description |
---|---|
bool |
GetUnderlyingType(Type)
Declarationpublic static Type GetUnderlyingType(this Type type)
Type | Name | Description |
---|---|---|
Type | type |
Type | Description |
---|---|
Type |
GetDefaultValue(Type)
Declarationpublic static object GetDefaultValue(this Type type)
Type | Name | Description |
---|---|---|
Type | type |
Type | Description |
---|---|
object |
IsNumeric(Type)
Declarationpublic static bool IsNumeric(this Type type)
Type | Name | Description |
---|---|---|
Type | type |
Type | Description |
---|---|
bool |
ToLowerCaseString(bool)
Declarationpublic static string ToLowerCaseString(this bool value)
Type | Name | Description |
---|---|---|
bool | value |
Type | Description |
---|---|
string |
ExtendedEquals(object, object)
Declarationpublic static bool ExtendedEquals(this object value, object valueToCompare)
Type | Name | Description |
---|---|---|
object | value | |
object | valueToCompare |
Type | Description |
---|---|
bool |
ToFormattedString<T>(List<T>, bool)
Declarationpublic static string ToFormattedString<T>(this List<T> value, bool quotate)
Type | Name | Description |
---|---|---|
List<T> | value | |
bool | quotate |
Type | Description |
---|---|
string |
ToFormattedString<T>(List<T>, string, bool)
Declarationpublic static string ToFormattedString<T>(this List<T> value, string delimeter, bool quotate)
Type | Name | Description |
---|---|---|
List<T> | value | |
string | delimeter | |
bool | quotate |
Type | Description |
---|---|
string |
TryGetValueIgnoreCase<TV>(IDictionary<string, TV>, string, out TV)
Declarationpublic static bool TryGetValueIgnoreCase<TV>(this IDictionary<string, TV> dictionary, string key, out TV value)
Type | Name | Description |
---|---|---|
IDictionary<string, TV> | dictionary | |
string | key | |
{TV} | value |
Type | Description |
---|---|
bool |
ToDynamic(Dictionary<string, object>)
Declarationpublic static dynamic ToDynamic(this Dictionary<string, object> dictionary)
Type | Name | Description |
---|---|---|
Dictionary<string, object> | dictionary |
Type | Description |
---|---|
dynamic |
ToValidCSharpIdentifierName(string)
Declarationpublic static string ToValidCSharpIdentifierName(this string originalString)
Type | Name | Description |
---|---|---|
string | originalString |
Type | Description |
---|---|
string |
FirstOrNull<T>(IEnumerable<T>, Func<T, bool>)
Declarationpublic static T? FirstOrNull<T>(this IEnumerable<T> items, Func<T, bool> predicate) where T : struct
Type | Name | Description |
---|---|---|
IEnumerable<T> | items | |
Func<T, bool> | predicate |
Type | Description |
---|---|
T? |
IsSimpleDynamicType(Type)
Declarationpublic static bool IsSimpleDynamicType(this Type type)
Type | Name | Description |
---|---|---|
Type | type |
Type | Description |
---|---|
bool |
CastAs<T>(object)
Declarationpublic static T CastAs<T>(this object obj)
Type | Name | Description |
---|---|---|
object | obj |
Type | Description |
---|---|
{T} |
TryCast<T>(object, out T)
Declarationpublic static bool TryCast<T>(this object obj, out T newValue)
Type | Name | Description |
---|---|---|
object | obj | |
{T} | newValue |
Type | Description |
---|---|
bool |