static AttributeCache() { objectAttributeCache = objectAttributeCache ?? new KeyedCache <Type, HtmlObjectAttribute>(); propertyAttributeCache = propertyAttributeCache ?? new KeyedCache <Type, string, HtmlPropertyAttribute>(); converterAttributeCache = converterAttributeCache ?? new KeyedCache <Type, string, HtmlConverterAttribute>(); regexAttributeCache = regexAttributeCache ?? new KeyedCache <Type, string, HtmlRegexAttribute>(); }
static ConverterCache() { cache = cache ?? new KeyedCache <Type, object[], HtmlConverter>(ConverterArgsEqualityComparer.Instance) { DefaultValueKey = Array.Empty <object>() }; }
static SelectorCache() { objectCache = objectCache ?? new KeyedCache <string, HtmlObjectSelector> { DefaultKey = KeyedCache.DefaultStringKey }; propertyCache = propertyCache ?? new KeyedCache <string, HtmlPropertySelector> { DefaultKey = KeyedCache.DefaultStringKey }; }
static ParserCache() { cache = cache ?? new KeyedCache <Type, HtmlParser>(); }
static PropertyCache() { cache = cache ?? new KeyedCache <Type, string, PropertyInfo>(); }