Beispiel #1
0
 public bool isDependent()
 {
     if (Dependent == null || Dependent.Length < 1 || Dependent.Equals(String.Empty) || Dependent.Equals("false", StringComparison.InvariantCultureIgnoreCase))
     {
         return(false);
     }
     return(true);
 }
Beispiel #2
0
 public bool hasProperty(string propertyName)
 {
     if (propertyName.Equals("Alternate", StringComparison.InvariantCultureIgnoreCase))
     {
         return(Alternate != null && Alternate != System.Guid.Empty);
     }
     if (propertyName.Equals("Dependent", StringComparison.InvariantCultureIgnoreCase))
     {
         return(Dependent != null || Dependent.Equals(String.Empty));
     }
     return(Properties.ContainsKey(propertyName));
 }