示例#1
0
 public bool HasContactDefaults()
 {
     return(Raw.ContainsKey(CONTACT_FNAME) ||
            Raw.ContainsKey(CONTACT_LNAME) ||
            Raw.ContainsKey(CONTACT_EMAIL) ||
            Raw.ContainsKey(CONTACT_COMPANY) ||
            Raw.ContainsKey(CONTACT_PHONE));
 }
示例#2
0
 protected string GetValue(string key)
 {
     if (Raw.ContainsKey(key))
     {
         return(Raw[key]);
     }
     else
     {
         return(null);
     }
 }
示例#3
0
 /// <summary>
 /// Shorthand method for ContainsKey call
 /// </summary>
 /// <param name="id">Id of data object</param>
 /// <returns>Data object</returns>
 public bool Has(int id)
 {
     return(Raw?.ContainsKey(id) ?? false);
 }