/// <summary> /// Determines whether the specified object is equal to the current object. /// </summary> /// <param name="obj">The object to compare with the current object.</param> /// <returns>true if the specified object is equal to the current object; otherwise, false.</returns> public override bool Equals(object obj) { ThingReference Ref = obj as ThingReference; if (Ref == null) { return(false); } else { return(this.SameThing(Ref)); } }
/// <summary> /// Contains information about an error on a thing /// </summary> /// <param name="Thing">Thing reference.</param> /// <param name="Timestamp">Timestamp.</param> /// <param name="ErrorMessage">Error message.</param> public ThingError(ThingReference Thing, DateTime Timestamp, string ErrorMessage) : this(Thing.NodeId, Thing.SourceId, Thing.Partition, Timestamp, ErrorMessage) { }