Class MiscExtensions
- Namespace
- DCR.Workflow
- Assembly
- DCR.Workflow.dll
public static class MiscExtensions
- Inheritance
-
MiscExtensions
- Inherited Members
-
Methods
Append<T, U>(Dictionary<T, U>, Dictionary<T, U>?)
public static void Append<T, U>(this Dictionary<T, U> x, Dictionary<T, U>? y)
Parameters
x
Dictionary<T, U>
y
Dictionary<T, U>
Type Parameters
T
U
GetFields(value)
public static IEnumerable<KeyValuePair<string, value>> GetFields(this value value)
Parameters
value
value
Returns
- IEnumerable<KeyValuePair<string, value>>
GetWithDefault(Dictionary<string, string>, string, string)
public static string GetWithDefault(this Dictionary<string, string> parameters, string key, string default_)
Parameters
parameters
Dictionary<string, string>
key
string
default_
string
Returns
- string
ToField(value, string)
public static value ToField(this value value, string key)
Parameters
value
value
key
string
Returns
- value
ToLog<T>(T?)
public static string ToLog<T>(this T? v)
Parameters
v
T
Returns
- string
Type Parameters
T
ToValue(IEnumerable<value>)
public static value ToValue(this IEnumerable<value> values)
Parameters
values
IEnumerable<value>
Returns
- value
ToValue(JsonElement)
public static value ToValue(this JsonElement json)
Parameters
json
JsonElement
Returns
- value
TryGetBool(Dictionary<string, string>, string, out bool)
public static bool TryGetBool(this Dictionary<string, string> parameters, string key, out bool b)
Parameters
parameters
Dictionary<string, string>
key
string
b
bool
Returns
- bool
TryGetInt(Dictionary<string, string>, string, out int)
public static bool TryGetInt(this Dictionary<string, string> parameters, string key, out int k)
Parameters
parameters
Dictionary<string, string>
key
string
k
int
Returns
- bool