Merge pull request #948 from ermshiperete/bug-xamarin-2394
[mono.git] / mcs / class / corlib / System.Reflection.Emit / PropertyToken.cs
index b5ba3de6858c8f858e4b684bb66d25830d508a39..e1f2c846965167f1cb4c3028d00b1040977df0ce 100644 (file)
@@ -25,6 +25,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+#if !FULL_AOT_RUNTIME
 using System.Runtime.InteropServices;
 
 namespace System.Reflection.Emit {
@@ -39,14 +40,7 @@ namespace System.Reflection.Emit {
 
                internal int tokValue;
 
-               public static readonly PropertyToken Empty;
-
-
-               static PropertyToken ()
-               {
-                       Empty = new PropertyToken ();
-               }
-
+               public static readonly PropertyToken Empty = new PropertyToken ();
 
                internal PropertyToken (int val)
                {
@@ -105,3 +99,4 @@ namespace System.Reflection.Emit {
 
 }
 
+#endif