System.Web.UI.SimpleWebHandlerParser.TagParsed C# (CSharp) Method

TagParsed() private method

private TagParsed ( ILocation location, System tagtype, string tagid, TagAttributes attributes ) : void
location ILocation
tagtype System
tagid string
attributes System.Web.Compilation.TagAttributes
return void
		void TagParsed (ILocation location, System.Web.Compilation.TagType tagtype, string tagid, TagAttributes attributes)
		{
			if (tagtype != System.Web.Compilation.TagType.Directive)
				throw new ParseException (location, "Unexpected tag");

			if (tagid == null || tagid.Length == 0 || String.Compare (tagid, DefaultDirectiveName, true, Helpers.InvariantCulture) == 0) {
				AddDefaultDirective (location, attributes);
			} else if (String.Compare (tagid, "Assembly", true, Helpers.InvariantCulture) == 0) {
				AddAssemblyDirective (location, attributes);
			} else {
				throw new ParseException (location, "Unexpected directive: " + tagid);
			}
		}