Implement MachineKey.Protect and MachineKey.Unprotect
[mono.git] / mcs / build / common / basic-profile-check.cs
1 class X {
2         // Check installed compiler
3         static void Generic<T> ()
4         {
5                 // we use 'var' all around in the compiler sources
6                 var x = new X ();
7         }
8         
9         void DefaultParametersAvailable (int i = 3)
10         {
11         }
12
13         static int Main ()
14         {
15                 // Check installed mscorlib
16                 // Type is included in Mono 2.4+, and .NET 3.5 SP1
17                 object o = typeof (System.Runtime.InteropServices.AllowReversePInvokeCallsAttribute);
18                 
19                 // It should crash but double check it in case of very old old runtime
20                 if (o == null)
21                         return 1;
22
23                 return 0;
24         }
25 }