New tests.
[mono.git] / mcs / class / corlib / System.Runtime.Serialization.Formatters.Binary / BinaryCommon.cs
index b88bc212f2bf48740adaec5a17be90d02327706a..ffe5b4320df8081c106ae61ecf9458606173de92 100644 (file)
@@ -81,12 +81,13 @@ namespace System.Runtime.Serialization.Formatters.Binary
 
                        // TimeStamp does not have a TypeCode, so it is managed as a special
                        // case in GetTypeCode()
-                       
-                       // This environment variable is only for test and benchmarking pourposes.
+#if !MOONLIGHT
+                       // This environment variable is only for test and benchmarking purposes.
                        // By default, mono will always use IL generated class serializers.
                        string s = Environment.GetEnvironmentVariable("MONO_REFLECTION_SERIALIZER");
                        if (s == null) s = "no";
                        UseReflectionSerialization = (s != "no");
+#endif
                }
 
                public static bool IsPrimitive (Type type)
@@ -188,7 +189,7 @@ namespace System.Runtime.Serialization.Formatters.Binary
                MultiDimensional = 2
        }
 
-       internal enum MethodFlags : byte
+       internal enum MethodFlags
        {
                NoArguments = 1,
                PrimitiveArguments = 2,
@@ -199,7 +200,9 @@ namespace System.Runtime.Serialization.Formatters.Binary
                IncludesSignature = 128,
 
                FormatMask = 15,
-               NeedsInfoArrayMask = 4 + 8 + 64 + 128
+
+               GenericArguments = 0x8000,
+               NeedsInfoArrayMask = 4 + 8 + 64 + 128 + 0x8000,
        }
 
        internal enum ReturnTypeTag : byte