Name

ArgIterator

Synopsis

The .NET runtime uses this class to handle methods that take a variable number of parameters (C# uses the params keyword; C++ uses ...; VB.NET uses ParamArray). The use of this class is completely hidden by language features. Unless you are writing a language compiler that needs to implement this feature, you do not need to use this class.

public struct ArgIterator {
// Public Constructors
   public method ArgIterator(RuntimeArgumentHandle arglist);  
   public method ArgIterator(RuntimeArgumentHandle arglist, 
        void *ptr);  
// Public Instance Methods
   public method void End();  
   public override method bool Equals(object o);                // overrides ValueType
   public override method int GetHashCode();                     // overrides ValueType
   public method TypedReference GetNextArg();  
   public method TypedReference GetNextArg(
        RuntimeTypeHandle rth);  
   public method RuntimeTypeHandle GetNextArgType();  
   public method int GetRemainingCount();  
}

Hierarchy

ObjectValueTypeArgIterator

Get C# in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.