MethodArgument class
- Last UpdatedDec 15, 2023
- 1 minute read
Create a new MethodArgument
Syntax
public MethodArgument(string name, Value value)
public MethodArgument(string name, Value[] value)
public MethodArgument(string name, GenericStruct value)
public MethodArgument(string name, GenericStruct[] value)
Description
Creates a new MethodArgument with the specified name and value. The value can be either a Value or a GenericStruct (or an array of Value or GenericStruct). This allows nested structures to be created.
Examples
public string Name
public bool IsArray
public bool IsStructure
Properties containing the name of the MethodArgument and whether its value is an array and of type GenericStruct, respectively (otherwise, the value is of type Value).
public Value[] SimpleValue
The value of the MethodArgument if it is of type Value, null otherwise.
public Struct[] StructValue
The value of the MethodArgument if it is of type GenericStruct, null otherwise.
public object this[int key]
Accesses the value of the MethodArgument at the specified index (zero-based).
For example:
Value myVal = myArg[0]