Documentation for this anywhere?

Especially on HOW they stop the boxing to happen.

Regards

Thomas Tomiczek
THONA Consulting Ltd.
(Microsoft MVP C#/.NET)


> -----Original Message-----
> From: Jeroen Frijters [mailto:[EMAIL PROTECTED] 
> Sent: Montag, 16. Juni 2003 11:39
> To: [EMAIL PROTECTED]
> 
> ArgIterator is a special type. It contains a pointer to the 
> stack, so it isn't allowed to escape the current method. 
> Otherwise, you'd have a pointer pointing into the middle of nowhere.
> 
> Regards,
> Jeroen
> 
> > 
> > -----Original Message-----
> > From: Bogdan Lachendro [mailto:[EMAIL PROTECTED]
> > Sent: Monday, June 16, 2003 10:17
> > To: [EMAIL PROTECTED]
> > 
> > Hi!
> > 
> > Look at the code below:
> > 
> > using System;
> > 
> > namespace IteratorTest
> > {
> >      public class Test
> >      {
> >          public object Method()
> >          {
> >              ArgIterator iterator;
> >              return iterator;
> >          }
> >      }
> > }
> > 
> > When I try  to compile it I get :
> > 
> > E:\Assemblies\NewGeneratorExample\Class1.cs(13): Cannot 
> convert type 
> > 'System.ArgIterator' to 'object'
> > 
> > 
> > Can anyone tell me what's going on ?
> > 
> > Best regards,
> > Bogdan
> > 
> 
> 

Reply via email to