Assembly comparison is not needed in this case
authorMarek Habersack <grendel@twistedcode.net>
Wed, 6 Aug 2008 18:25:14 +0000 (18:25 -0000)
committerMarek Habersack <grendel@twistedcode.net>
Wed, 6 Aug 2008 18:25:14 +0000 (18:25 -0000)
svn path=/trunk/mcs/; revision=109776

mcs/class/System.Web/System.Web.Compilation/TemplateControlCompiler.cs

index 142c4ddc61af718768a14d02963dd3608d2e4d27..eece13722d984d52a78c076304e49e2dffa55d20 100644 (file)
@@ -55,7 +55,6 @@ namespace System.Web.Compilation
                static BindingFlags noCaseFlags = BindingFlags.Public | BindingFlags.NonPublic |
                                                  BindingFlags.Instance | BindingFlags.IgnoreCase;
                static Type monoTypeType = Type.GetType ("System.MonoType");
-               static Assembly monoTypeAssembly = typeof (object).Assembly;
                
                TemplateControlParser parser;
                int dataBoundAtts;
@@ -1745,7 +1744,7 @@ namespace System.Web.Compilation
                                else
                                        throw new ParseException (currentLocation,
                                                        "Value '" + str  + "' is not a valid boolean.");
-                       } else if (type == monoTypeType && type.GetType ().Assembly == monoTypeAssembly)
+                       } else if (type == monoTypeType)
                                type = typeof (System.Type);
                        
                        if (str == null)