//
using System;
using System.Collections;
+using System.Globalization;
using System.Web.UI;
+using System.Web.Util;
namespace System.Web.Compilation
{
return generator.GetCompiledType ();
}
- protected override void CreateMethods ()
+ protected internal override void CreateMethods ()
{
base.CreateMethods ();
-
+ CreateProfileProperty ();
ProcessObjects (parser.RootBuilder);
}
continue;
}
- if (tag.Scope == "session") {
+ if (String.Compare (tag.Scope, "session", true, Helpers.InvariantCulture) == 0) {
sessionObjectTags.Add (tag);
CreateApplicationOrSessionPropertyForObject (tag.Type, tag.ObjectID,
false, false);
- } else if (tag.Scope == "application") {
+ } else if (String.Compare (tag.Scope, "application", true, Helpers.InvariantCulture) == 0) {
applicationObjectTags.Add (tag);
CreateFieldForObject (tag.Type, tag.ObjectID);
CreateApplicationOrSessionPropertyForObject (tag.Type, tag.ObjectID,
true, false);
} else {
- throw new ParseException (tag.location, "Invalid scope: " + tag.Scope);
+ throw new ParseException (tag.Location, "Invalid scope: " + tag.Scope);
}
}
}