System.Xml.Schema.FacetsChecker.FacetsCompiler.CompileMaxExclusiveFacet C# (CSharp) Method

CompileMaxExclusiveFacet() private method

private CompileMaxExclusiveFacet ( XmlSchemaFacet facet ) : void
facet XmlSchemaFacet
return void
        internal void CompileMaxExclusiveFacet(XmlSchemaFacet facet) {
            CheckProhibitedFlag(facet, RestrictionFlags.MaxExclusive, Res.Sch_MaxExclusiveFacetProhibited);
            CheckDupFlag(facet, RestrictionFlags.MaxExclusive, Res.Sch_DupMaxExclusiveFacet);
            derivedRestriction.MaxExclusive = ParseFacetValue(builtInType, facet, Res.Sch_MaxExclusiveFacetInvalid, null, null);
            
            if ((baseFixedFlags & RestrictionFlags.MaxExclusive) != 0) {
                if (!datatype.IsEqual(datatype.Restriction.MaxExclusive, derivedRestriction.MaxExclusive)) {
                    throw new XmlSchemaException(Res.Sch_FacetBaseFixed, facet);
                }
            }
            CheckValue(derivedRestriction.MaxExclusive, facet);
            SetFlag(facet, RestrictionFlags.MaxExclusive);
        }