O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required