Beispiel #1
0
        /// <summary>
        /// Handler for the Scale element
        /// </summary>
        /// <param name="reader">xml reader currently positioned at Scale element</param>
        private void HandleScaleElement(XmlReader reader)
        {
            Debug.Assert(reader != null);
            ByteFacetDescriptionElement facetDescription = new ByteFacetDescriptionElement(this, DbProviderManifest.ScaleFacetName);

            facetDescription.Parse(reader);
            _facetDescriptions.Add(facetDescription);
        }
        /////////////////////////////////////////////////////////////////////
        // Element Handlers

        /// <summary>
        /// Handler for the Precision element
        /// </summary>
        /// <param name="reader">xml reader currently positioned at Precision element</param>
        private void HandlePrecisionElement(XmlReader reader)
        {
            Debug.Assert(reader != null);
            var facetDescription = new ByteFacetDescriptionElement(this, DbProviderManifest.PrecisionFacetName);
            facetDescription.Parse(reader);

            _facetDescriptions.Add(facetDescription);
        }