예제 #1
0
        public override System.Object Clone()
        {
            PayloadAttributeImpl impl = new PayloadAttributeImpl();

            impl.payload = new Payload(this.payload.data, this.payload.offset, this.payload.length);
            return(impl);
        }
예제 #2
0
        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);
        }
예제 #3
0
		public override System.Object Clone()
		{
            PayloadAttributeImpl impl = new PayloadAttributeImpl();
            impl.payload = new Payload(this.payload.data, this.payload.offset, this.payload.length);
            return impl;
		}