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