/// <internalonly/> /// <devdoc> /// Registers the specified style attribute to create a mapping between a string representation /// and the corresponding HtmlTextWriterStyle value. /// In addition, the mapping can include additional information about the attribute type /// such as whether it is a URL. /// </devdoc> internal static void RegisterAttribute(string name, HtmlTextWriterStyle key, bool encode, bool isUrl) { string nameLCase = name.ToLower(CultureInfo.InvariantCulture); attrKeyLookupTable.Add(nameLCase, key); if ((int)key < attrNameLookupArray.Length) { attrNameLookupArray[(int)key] = new AttributeInformation(name, encode, isUrl); } }
private static void RegisterAttribute(string name, HtmlTextWriterAttribute key, bool encode, bool isUrl) { string str = name.ToLower(CultureInfo.InvariantCulture); _attrKeyLookupTable.Add(str, key); if (key < _attrNameLookupArray.Length) { _attrNameLookupArray[(int) key] = new AttributeInformation(name, encode, isUrl); } }