Table of Contents

Class InvokeArg

Namespace
Dynamitey
Assembly
Dynamitey.Community.dll

Use for Named arguments passed to InvokeMethods

public class InvokeArg
Inheritance
InvokeArg
Derived
Inherited Members

Constructors

InvokeArg(string, object?)

Initializes a new instance of the InvokeArg class.

public InvokeArg(string name, object? value)

Parameters

name string

The name.

value object

The value.

Fields

Create

Create Function can set to variable to make cleaner syntax;

public static readonly Func<string, object, InvokeArg> Create

Field Value

Func<string, object, InvokeArg>

Properties

Name

Gets or sets the argument name.

public string Name { get; }

Property Value

string

The name.

Value

Gets or sets the argument value. May be null - a named argument's value is whatever the caller passed, and null is a legitimate argument value.

public object? Value { get; }

Property Value

object

The value.

Methods

FromKeyValuePair(KeyValuePair<string, object>)

Named alternate for the explicit conversion from KeyValuePair<TKey, TValue> above, for callers in a language that cannot consume operator overloads.

public static InvokeArg FromKeyValuePair(KeyValuePair<string, object> pair)

Parameters

pair KeyValuePair<string, object>

The pair.

Returns

InvokeArg

The result of the conversion.

Operators

explicit operator InvokeArg(KeyValuePair<string, object>)

Performs an explicit conversion from KeyValuePair<TKey, TValue> to InvokeArg.

public static explicit operator InvokeArg(KeyValuePair<string, object> pair)

Parameters

pair KeyValuePair<string, object>

The pair.

Returns

InvokeArg

The result of the conversion.