Beispiel #1
0
 public bool Contains(string name)
 {
     if (null == name)
     {
         return(false);
     }
     if (!name.StartsWith("@"))
     {
         name = "@" + name;
     }
     return(_Values.ContainsKey(name));
 }
Beispiel #2
0
 public Energy.Enumeration.FormatType GetType(string name)
 {
     if (null == name)
     {
         return(Enumeration.FormatType.Text);
     }
     if (!name.StartsWith("@"))
     {
         name = "@" + name;
     }
     if (!_Types.ContainsKey(name))
     {
         return(Enumeration.FormatType.Text);
     }
     return(_Types[name]);
 }