public bool Equals(OTTag tag) { if (tag is OTTag) // non-null { // get byte array for tag and compare with mTag byte[] tb = tag.GetBytes(); return(this.Equals(tb)); } else { return(false); } }