Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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;
		}