K
Kerneltrap
Hi,
I have a type:
public struct Value
{
public static Value operator ++(Value v)
{
return new Value();
}
public static Value New()
{
return new Value();
}
}
This code
Value v1 = Value.New()++;
compiles successfully, but i get InvalidProgramException.
The same for
Value v = new Value()++;
Changing from struct to class doesn't help.
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
Win XP SP2.
I have a type:
public struct Value
{
public static Value operator ++(Value v)
{
return new Value();
}
public static Value New()
{
return new Value();
}
}
This code
Value v1 = Value.New()++;
compiles successfully, but i get InvalidProgramException.
The same for
Value v = new Value()++;
Changing from struct to class doesn't help.
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
Win XP SP2.