예제 #1
0
파일: Gender.cs 프로젝트: hanifhn/Qowaiv
 /// <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));
 }
예제 #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);