Bump corefx
[mono-project.git] / mono / tests / marshal-valuetypes.cs
blob7d4aa3e7dec299dbba62a132242b0c9a34dd7dec
1 using System;
3 public class Test: MarshalByRefObject
5 public DateTime Stamp = new DateTime (1968, 1, 2);
6 public double perc = 5.4;
8 static int Main ()
10 AppDomain d = AppDomain.CreateDomain ("foo");
11 Test t = (Test) d.CreateInstanceAndUnwrap (typeof (Test).Assembly.FullName, typeof (Test).FullName);
12 if (t.Stamp != new DateTime (1968, 1, 2))
13 return 1;
14 t.perc = 7.2;
15 if (t.perc != 7.2)
16 return 2;
17 return 0;