ArgIterator ArgIterator ArgIterator ArgIterator Struct

Definition

Represents a variable-length argument list; that is, the parameters of a function that takes a variable number of arguments.

public value class ArgIterator
public struct ArgIterator
type ArgIterator = struct
Public Structure ArgIterator
Inheritance
ArgIteratorArgIteratorArgIteratorArgIterator

Remarks

Developers who write compilers use the ArgIterator structure to enumerate the mandatory and optional arguments in an argument list. The ArgIterator structure is not generally useful for applications other than compilers.

The functionality in the ArgIterator structure is typically hidden in the syntax of a specific programming language. For example, in the C++ programming language you declare a variable-length argument list by specifying an ellipsis ("...") at the end of the argument list. The ArgIterator structure is useful primarily when a development language does not provide direct support for accessing variable-length parameters.

Constructors

ArgIterator(RuntimeArgumentHandle) ArgIterator(RuntimeArgumentHandle) ArgIterator(RuntimeArgumentHandle) ArgIterator(RuntimeArgumentHandle)

Initializes a new instance of the ArgIterator structure using the specified argument list.

ArgIterator(RuntimeArgumentHandle, Void*) ArgIterator(RuntimeArgumentHandle, Void*) ArgIterator(RuntimeArgumentHandle, Void*) ArgIterator(RuntimeArgumentHandle, Void*)

Initializes a new instance of the ArgIterator structure using the specified argument list and a pointer to an item in the list.

Methods

End() End() End() End()

Concludes processing of the variable-length argument list represented by this instance.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

This method is not supported, and always throws NotSupportedException.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Returns the hash code of this object.

GetNextArg() GetNextArg() GetNextArg() GetNextArg()

Returns the next argument in a variable-length argument list.

GetNextArg(RuntimeTypeHandle) GetNextArg(RuntimeTypeHandle) GetNextArg(RuntimeTypeHandle) GetNextArg(RuntimeTypeHandle)

Returns the next argument in a variable-length argument list that has a specified type.

GetNextArgType() GetNextArgType() GetNextArgType() GetNextArgType()

Returns the type of the next argument.

GetRemainingCount() GetRemainingCount() GetRemainingCount() GetRemainingCount()

Returns the number of arguments remaining in the argument list.

Applies to