\r
static Type[] _typeCodesToType;\r
static byte[] _typeCodeMap;\r
+ public static bool UseReflectionSerialization = false;\r
\r
static BinaryCommon()\r
{\r
\r
// TimeStamp does not have a TypeCode, so it is managed as a special\r
// case in GetTypeCode()\r
+ \r
+ // This environment variable is only for test and benchmarking pourposes.\r
+ // By default, mono will always use IL generated class serializers.\r
+ string s = Environment.GetEnvironmentVariable("MONO_REFLECTION_SERIALIZER");\r
+ if (s == null) s = "no";\r
+ UseReflectionSerialization = (s != "no");\r
}\r
\r
public static bool IsPrimitive (Type type)\r