Ejemplo n.º 1
0
 public T this[string key]
 {
     get
     {
         return(this.KeyToType[SchemaElementLookUpTable <T> .KeyFromName(key)]);
     }
 }
Ejemplo n.º 2
0
        public T LookUpEquivalentKey(string key)
        {
            key = SchemaElementLookUpTable <T> .KeyFromName(key);

            T obj;

            if (this.KeyToType.TryGetValue(key, out obj))
            {
                return(obj);
            }
            return(default(T));
        }
Ejemplo n.º 3
0
 public bool ContainsKey(string key)
 {
     return(this.KeyToType.ContainsKey(SchemaElementLookUpTable <T> .KeyFromName(key)));
 }
Ejemplo n.º 4
0
 private static string KeyFromElement(T type)
 {
     return(SchemaElementLookUpTable <T> .KeyFromName(type.Identity));
 }