public bool Equals(IId other) { if (other == null) { return(false); } if (object.ReferenceEquals(this, other)) { return(true); } if (!(other is DMTId)) { logger.Error("Comparing incompatible IId implementations. {0} and {1}", typeof(DMTId), other.GetType()); return(false); } DMTId other2 = (DMTId)other; return(this.value.Equals(other2.value)); }
public IId ParseId(string idStr) { return(DMTId.FromString(idStr)); }
public virtual IId CreateId() { logger.Trace("Created new id."); return(DMTId.NewId()); }