Beispiel #1
0
        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));
        }
Beispiel #2
0
 public IId ParseId(string idStr)
 {
     return(DMTId.FromString(idStr));
 }
Beispiel #3
0
 public virtual IId CreateId()
 {
     logger.Trace("Created new id.");
     return(DMTId.NewId());
 }