using System;
using System.Reflection;
3 ...
4 public static void InitializeTitleTag()
5 {
6 Type type = typeof(HtmlTextWriter);
7 FieldInfo field = type.GetField("_tagNameLookupArray", BindingFlags.Static | BindingFlags.NonPublic);
8 Array lookup = (Array)field.GetValue(null);
9 int index = (int)HtmlTextWriterTag.Title;
10 object value = lookup.GetValue(index);
11 type = value.GetType();
12 field = type.GetField("tagType");
13 field.SetValue(value, 0);
14 lookup.SetValue(value, index);
15 }