public override System.Object Clone() { PayloadAttributeImpl impl = new PayloadAttributeImpl(); impl.payload = new Payload(this.payload.data, this.payload.offset, this.payload.length); return(impl); }
public override bool Equals(System.Object other) { if (other == this) { return(true); } if (other is PayloadAttribute) { PayloadAttributeImpl o = (PayloadAttributeImpl)other; if (o.payload == null || payload == null) { return(o.payload == null && payload == null); } return(o.payload.Equals(payload)); } return(false); }
public override System.Object Clone() { PayloadAttributeImpl impl = new PayloadAttributeImpl(); impl.payload = new Payload(this.payload.data, this.payload.offset, this.payload.length); return impl; }