Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ee0bc0d176
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (16 sloc) 0.376 kb
using UnboxTest;
public class ClassA {};
public class main {
public static int Main () {
UnboxerStruct<ClassA> us;
Unboxer<ClassA> u = new Unboxer<ClassA> ();
us.field = 123;
if (u.unbox ((object)us).field != 123)
return 1;
if (u.unboxNullable ((object)us).Value.field != 123)
return 1;
if (u.unboxNullable (null) != null)
return 1;
return 0;
}
}
Jump to Line
Something went wrong with that request. Please try again.