[System]: Add new internal X509Certificate2Impl.IntermediateCertificates.
[mono-project.git] / mono / tests / generic-unbox.2.cs
blob71c789ca108941ebf377a943a0bd3cf23710052e
1 using UnboxTest;
3 public class ClassA {};
5 public class main {
6 public static int Main () {
7 UnboxerStruct<ClassA> us;
8 Unboxer<ClassA> u = new Unboxer<ClassA> ();
10 us.field = 123;
12 if (u.unbox ((object)us).field != 123)
13 return 1;
14 if (u.unboxNullable ((object)us).Value.field != 123)
15 return 1;
16 if (u.unboxNullable (null) != null)
17 return 1;
18 return 0;