public static bool TryParse(string value, out WmId wmId) { if (string.IsNullOrEmpty(value)) { wmId = default(WmId); return(false); } Match match = Regex.Match(value, Pattern); if (match.Value != value) { wmId = default(WmId); return(false); } wmId = new WmId(ulong.Parse(value, NumberStyles.Integer, CultureInfo.InvariantCulture.NumberFormat)); return(true); }
public bool Equals(WmId other) { return(_wmId == other._wmId); }