public static bool TryParse(string value, out ObjId objId) { objId = Empty; if (value == null || value.Length != 24) { return(false); } try { objId = new ObjId(value); return(true); } catch (FormatException) { return(false); } }
public bool Equals(ObjId other) { return(other != null && ToString() == other.ToString()); }