Exemplo n.º 1
0
 public static HtmlRegexAttribute GetOrAddRegexAttribute(Type declaringType, string propertyName)
 {
     return(regexAttributeCache.GetOrAdd(declaringType, propertyName, GetRegexAttributeValue));
 }
Exemplo n.º 2
0
 public static HtmlPropertyAttribute GetOrAddPropertyAttribute(Type declaringType, string propertyName)
 {
     return(propertyAttributeCache.GetOrAdd(declaringType, propertyName, GetPropertyAttributeValue));
 }
Exemplo n.º 3
0
 public static HtmlConverterAttribute GetOrAddConverterAttribute(Type declaringType, string propertyName)
 {
     return(converterAttributeCache.GetOrAdd(declaringType, propertyName, GetConverterAttributeValue));
 }
Exemplo n.º 4
0
 public static HtmlObjectAttribute GetOrAddObjectAttribute(Type objectType)
 {
     return(objectAttributeCache.GetOrAdd(objectType, GetObjectAttributeValue));
 }
Exemplo n.º 5
0
 public static HtmlPropertySelector GetOrAddProperty(string propSelector)
 {
     return(propertyCache.GetOrAdd(propSelector, selector => new HtmlPropertySelector(selector)));
 }
Exemplo n.º 6
0
 public static HtmlObjectSelector GetOrAddObject(string objSelector)
 {
     return(objectCache.GetOrAdd(objSelector, selector => new HtmlObjectSelector(selector)));
 }
Exemplo n.º 7
0
 public static HtmlParser GetOrAdd(Type type)
 {
     return(cache.GetOrAdd(type, GetValue));
 }
Exemplo n.º 8
0
 public static PropertyInfo GetOrAdd(Type declaringType, string propertyName)
 {
     return(cache.GetOrAdd(declaringType, propertyName, (o, p) => o.GetProperty(p)));
 }