/// <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)); }
/// <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);