ArgIterator Structure

 

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

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

public struct ArgIterator

NameDescription
System_CAPS_pubmethodArgIterator(RuntimeArgumentHandle)

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

System_CAPS_pubmethodArgIterator(RuntimeArgumentHandle, Void*)

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

NameDescription
System_CAPS_pubmethodEnd()

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

System_CAPS_pubmethodEquals(Object)

This method is not supported, and always throws NotSupportedException.(Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodGetHashCode()

Returns the hash code of this object.(Overrides ValueType.GetHashCode().)

System_CAPS_pubmethodGetNextArg()

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

System_CAPS_pubmethodGetNextArg(RuntimeTypeHandle)

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

System_CAPS_pubmethodGetNextArgType()

Returns the type of the next argument.

System_CAPS_pubmethodGetRemainingCount()

Returns the number of arguments remaining in the argument list.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns the fully qualified type name of this instance.(Inherited from ValueType.)

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.

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: