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

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

            BinaryMessageEncodingElement source = (BinaryMessageEncodingElement)from;

            this.MaxSessionSize    = source.MaxSessionSize;
            this.MaxReadPoolSize   = source.MaxReadPoolSize;
            this.MaxWritePoolSize  = source.MaxWritePoolSize;
            this.CompressionFormat = source.CompressionFormat;
        }
        public override void CopyFrom(ServiceModelExtensionElement from)
        {
            base.CopyFrom(from);

            BinaryMessageEncodingElement source = (BinaryMessageEncodingElement)from;

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