Beispiel #1
0
 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>();
 }
Beispiel #2
0
 static ConverterCache()
 {
     cache = cache ?? new KeyedCache <Type, object[], HtmlConverter>(ConverterArgsEqualityComparer.Instance)
     {
         DefaultValueKey = Array.Empty <object>()
     };
 }
Beispiel #3
0
 static SelectorCache()
 {
     objectCache = objectCache ?? new KeyedCache <string, HtmlObjectSelector> {
         DefaultKey = KeyedCache.DefaultStringKey
     };
     propertyCache = propertyCache ?? new KeyedCache <string, HtmlPropertySelector> {
         DefaultKey = KeyedCache.DefaultStringKey
     };
 }
Beispiel #4
0
 static ParserCache()
 {
     cache = cache ?? new KeyedCache <Type, HtmlParser>();
 }
Beispiel #5
0
 static PropertyCache()
 {
     cache = cache ?? new KeyedCache <Type, string, PropertyInfo>();
 }