Exemple #1
0
 /// <summary>Returns true if the val represents a valid Gender, otherwise false.</summary>
 public static bool IsValid(int?val)
 {
     return(val.HasValue && FromInt32s.ContainsKey(val.Value));
 }
Exemple #2
0
 /// <summary>Returns true if the val represents a valid Gender, otherwise false.</summary>
 public static bool IsValid(int?val) => val.HasValue && FromInt32s.ContainsKey(val.Value);