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