Hm, ArgIterator is a struct, so it would have to be boxed to be returned.
Ok, so take a look at this:
using System;
namespace IteratorTest
{
public struct MyStruct
{
} public class TestClass
{
public Object MethodOne()
{
MyStruct str = new MyStruct();
return str;
} public Object MethodTwo()
{
ArgIterator iter = new ArgIterator(new
RuntimeArgumentHandle());
return iter;
}
}}
MethodOne is OK, MethodTwo fails to compile... I tried casting, I tried things like:
Object obj = new ArgIterator(new RuntimeArgumentHandle()); ..
Nothing helps. The MSDN says, that ArgIterator inherits from System.ValueType - obvious since it's a struct, and System.ValueType inherits from System.Object... I'm a bit confused now ;((
BTW - using .NET 1.0 or 1.1?
[EMAIL PROTECTED]
Regards, Bogdan
