public override void CopyFrom(ServiceModelExtensionElement from)
        {
            base.CopyFrom(from);
            MtomMessageEncodingElement element = (MtomMessageEncodingElement)from;

            this.MessageVersion   = element.MessageVersion;
            this.WriteEncoding    = element.WriteEncoding;
            this.MaxReadPoolSize  = element.MaxReadPoolSize;
            this.MaxWritePoolSize = element.MaxWritePoolSize;
            this.MaxBufferSize    = element.MaxBufferSize;
        }
        public override void CopyFrom(ServiceModelExtensionElement from)
        {
            base.CopyFrom(from);

            MtomMessageEncodingElement source = (MtomMessageEncodingElement)from;

#pragma warning suppress 56506 //[....]; base.CopyFrom() checks for 'from' being null
            this.MessageVersion   = source.MessageVersion;
            this.WriteEncoding    = source.WriteEncoding;
            this.MaxReadPoolSize  = source.MaxReadPoolSize;
            this.MaxWritePoolSize = source.MaxWritePoolSize;
            this.MaxBufferSize    = source.MaxBufferSize;
        }