Class InvokeArg<T>
- Namespace
- Dynamitey
- Assembly
- Dynamitey.Community.dll
InvokeArg that makes it easier to Cast from any IDictionaryValue
public class InvokeArg<T> : InvokeArg
Type Parameters
T
- Inheritance
-
InvokeArg<T>
- Inherited Members
Constructors
InvokeArg(string, object?)
Initializes a new instance of the InvokeArg<T> class.
public InvokeArg(string name, object? value)
Parameters
Methods
FromKeyValuePair(KeyValuePair<string, T>)
Named alternate for the explicit conversion from KeyValuePair<TKey, TValue> above, for callers in a language that cannot consume operator overloads.
public static InvokeArg<T> FromKeyValuePair(KeyValuePair<string, T> pair)
Parameters
pairKeyValuePair<string, T>The pair.
Returns
- InvokeArg<T>
The result of the conversion.
Operators
explicit operator InvokeArg<T>(KeyValuePair<string, T>)
Performs an explicit conversion from KeyValuePair<TKey, TValue> to InvokeArg<T>.
public static explicit operator InvokeArg<T>(KeyValuePair<string, T> pair)
Parameters
pairKeyValuePair<string, T>The pair.
Returns
- InvokeArg<T>
The result of the conversion.