示例#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);