308 references to XmlSchemaDerivationMethod
dotnet-svcutil-lib (308)
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (2)
198derivedType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction); 210derivedType.SetDerivedBy(XmlSchemaDerivationMethod.List);
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (62)
50private XmlSchemaDerivationMethod _blockDefault; 51private XmlSchemaDerivationMethod _finalDefault; 70private const XmlSchemaDerivationMethod schemaBlockDefaultAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.Substitution; 71private const XmlSchemaDerivationMethod schemaFinalDefaultAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.List | XmlSchemaDerivationMethod.Union; 72private const XmlSchemaDerivationMethod elementBlockAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.Substitution; 73private const XmlSchemaDerivationMethod elementFinalAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension; 74private const XmlSchemaDerivationMethod simpleTypeFinalAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.List | XmlSchemaDerivationMethod.Union; 75private const XmlSchemaDerivationMethod complexTypeBlockAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension; 76private const XmlSchemaDerivationMethod complexTypeFinalAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension; 1024if (schema.BlockDefault == XmlSchemaDerivationMethod.All) 1026_blockDefault = XmlSchemaDerivationMethod.All; 1028else if (schema.BlockDefault == XmlSchemaDerivationMethod.None) 1030_blockDefault = XmlSchemaDerivationMethod.Empty; 1040if (schema.FinalDefault == XmlSchemaDerivationMethod.All) 1042_finalDefault = XmlSchemaDerivationMethod.All; 1044else if (schema.FinalDefault == XmlSchemaDerivationMethod.None) 1046_finalDefault = XmlSchemaDerivationMethod.Empty; 1305if (element.Final == XmlSchemaDerivationMethod.All) 1307element.SetFinalResolved(XmlSchemaDerivationMethod.All); 1309else if (element.Final == XmlSchemaDerivationMethod.None) 1311if (_finalDefault == XmlSchemaDerivationMethod.All) 1313element.SetFinalResolved(XmlSchemaDerivationMethod.All); 1368element.Block != XmlSchemaDerivationMethod.None || 1393if (element.Final != XmlSchemaDerivationMethod.None) 1411if (element.Block == XmlSchemaDerivationMethod.All) 1413element.SetBlockResolved(XmlSchemaDerivationMethod.All); 1415else if (element.Block == XmlSchemaDerivationMethod.None) 1417if (_blockDefault == XmlSchemaDerivationMethod.All) 1419element.SetBlockResolved(XmlSchemaDerivationMethod.All); 1549if (simpleType.Final == XmlSchemaDerivationMethod.All) 1551simpleType.SetFinalResolved(XmlSchemaDerivationMethod.All); 1553else if (simpleType.Final == XmlSchemaDerivationMethod.None) 1555if (_finalDefault == XmlSchemaDerivationMethod.All) 1557simpleType.SetFinalResolved(XmlSchemaDerivationMethod.All); 1689if (complexType.Block == XmlSchemaDerivationMethod.All) 1691complexType.SetBlockResolved(XmlSchemaDerivationMethod.All); 1693else if (complexType.Block == XmlSchemaDerivationMethod.None) 1705if (complexType.Final == XmlSchemaDerivationMethod.All) 1707complexType.SetFinalResolved(XmlSchemaDerivationMethod.All); 1709else if (complexType.Final == XmlSchemaDerivationMethod.None) 1711if (_finalDefault == XmlSchemaDerivationMethod.All) 1713complexType.SetFinalResolved(XmlSchemaDerivationMethod.All);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (31)
437if (examplar.FinalResolved == XmlSchemaDerivationMethod.All) 538if ((type.FinalResolved & XmlSchemaDerivationMethod.List) != 0) 551simpleType.SetDerivedBy(XmlSchemaDerivationMethod.List); 578if ((type.FinalResolved & XmlSchemaDerivationMethod.Restriction) != 0) 591simpleType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction); 598simpleType.SetDerivedBy(XmlSchemaDerivationMethod.Union); 645if ((unionMember.FinalResolved & XmlSchemaDerivationMethod.Union) != 0) 683if (unionMember.DerivedBy == XmlSchemaDerivationMethod.Restriction && (unionDatatype.HasLexicalFacets || unionDatatype.HasValueFacets)) 737CompileLocalAttributes(XmlSchemaComplexType.AnyType, complexType, complexType.Attributes, complexType.AnyAttribute, XmlSchemaDerivationMethod.Restriction); 738complexType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction); 818if ((baseType.FinalResolved & XmlSchemaDerivationMethod.Extension) != 0) 827complexType.SetDerivedBy(XmlSchemaDerivationMethod.Extension); 828CompileLocalAttributes(baseType, complexType, simpleExtension.Attributes, simpleExtension.AnyAttribute, XmlSchemaDerivationMethod.Extension); 860if (!XmlSchemaType.IsDerivedFromDatatype(simpleRestriction.BaseType.Datatype, baseType.Datatype, XmlSchemaDerivationMethod.None)) 887if ((baseType.FinalResolved & XmlSchemaDerivationMethod.Restriction) != 0) 912complexType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction); 913CompileLocalAttributes(baseType, complexType, simpleRestriction.Attributes, simpleRestriction.AnyAttribute, XmlSchemaDerivationMethod.Restriction); 942if ((baseType.FinalResolved & XmlSchemaDerivationMethod.Extension) != 0) 946CompileLocalAttributes(baseType, complexType, complexExtension.Attributes, complexExtension.AnyAttribute, XmlSchemaDerivationMethod.Extension); 979complexType.SetDerivedBy(XmlSchemaDerivationMethod.Extension); 1008if ((baseType.FinalResolved & XmlSchemaDerivationMethod.Restriction) != 0) 1012CompileLocalAttributes(baseType, complexType, complexRestriction.Attributes, complexRestriction.AnyAttribute, XmlSchemaDerivationMethod.Restriction); 1027complexType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction); 1033if (baseType != null && baseType != XmlSchemaComplexType.AnyType && complexType.DerivedBy == XmlSchemaDerivationMethod.Restriction) 1104if (!element.RefName.IsEmpty && substitution && (element.BlockResolved & XmlSchemaDerivationMethod.Substitution) == 0) 1419XmlSchemaType.IsDerivedFrom(derivedElement.ElementSchemaType, baseElement.ElementSchemaType, ~XmlSchemaDerivationMethod.Restriction); 1785private void CompileLocalAttributes(XmlSchemaComplexType baseType, XmlSchemaComplexType derivedType, XmlSchemaObjectCollection attributes, XmlSchemaAnyAttribute anyAttribute, XmlSchemaDerivationMethod derivedBy) 1798(attribute.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) 1824(attributeValue.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) 1852if (derivedBy == XmlSchemaDerivationMethod.Extension) 1912else if (attributeBase.AttributeSchemaType == null || attribute.AttributeSchemaType == null || !XmlSchemaType.IsDerivedFrom(attribute.AttributeSchemaType, attributeBase.AttributeSchemaType, XmlSchemaDerivationMethod.Empty))
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (61)
32private XmlSchemaDerivationMethod _blockDefault; 33private XmlSchemaDerivationMethod _finalDefault; 39private const XmlSchemaDerivationMethod schemaBlockDefaultAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.Substitution; 40private const XmlSchemaDerivationMethod schemaFinalDefaultAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.List | XmlSchemaDerivationMethod.Union; 41private const XmlSchemaDerivationMethod elementBlockAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.Substitution; 42private const XmlSchemaDerivationMethod elementFinalAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension; 43private const XmlSchemaDerivationMethod simpleTypeFinalAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.List | XmlSchemaDerivationMethod.Union; 44private const XmlSchemaDerivationMethod complexTypeBlockAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension; 45private const XmlSchemaDerivationMethod complexTypeFinalAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension; 439if (schema.BlockDefault == XmlSchemaDerivationMethod.All) 441_blockDefault = XmlSchemaDerivationMethod.All; 443else if (schema.BlockDefault == XmlSchemaDerivationMethod.None) 445_blockDefault = XmlSchemaDerivationMethod.Empty; 455if (schema.FinalDefault == XmlSchemaDerivationMethod.All) 457_finalDefault = XmlSchemaDerivationMethod.All; 459else if (schema.FinalDefault == XmlSchemaDerivationMethod.None) 461_finalDefault = XmlSchemaDerivationMethod.Empty; 952if (element.Final == XmlSchemaDerivationMethod.All) 954element.SetFinalResolved(XmlSchemaDerivationMethod.All); 956else if (element.Final == XmlSchemaDerivationMethod.None) 958if (_finalDefault == XmlSchemaDerivationMethod.All) 960element.SetFinalResolved(XmlSchemaDerivationMethod.All); 1015element.Block != XmlSchemaDerivationMethod.None || 1040if (element.Final != XmlSchemaDerivationMethod.None) 1058if (element.Block == XmlSchemaDerivationMethod.All) 1060element.SetBlockResolved(XmlSchemaDerivationMethod.All); 1062else if (element.Block == XmlSchemaDerivationMethod.None) 1064if (_blockDefault == XmlSchemaDerivationMethod.All) 1066element.SetBlockResolved(XmlSchemaDerivationMethod.All); 1194if (simpleType.Final == XmlSchemaDerivationMethod.All) 1196simpleType.SetFinalResolved(XmlSchemaDerivationMethod.All); 1198else if (simpleType.Final == XmlSchemaDerivationMethod.None) 1200if (_finalDefault == XmlSchemaDerivationMethod.All) 1202simpleType.SetFinalResolved(XmlSchemaDerivationMethod.All); 1332if (complexType.Block == XmlSchemaDerivationMethod.All) 1334complexType.SetBlockResolved(XmlSchemaDerivationMethod.All); 1336else if (complexType.Block == XmlSchemaDerivationMethod.None) 1348if (complexType.Final == XmlSchemaDerivationMethod.All) 1350complexType.SetFinalResolved(XmlSchemaDerivationMethod.All); 1352else if (complexType.Final == XmlSchemaDerivationMethod.None) 1354if (_finalDefault == XmlSchemaDerivationMethod.All) 1356complexType.SetFinalResolved(XmlSchemaDerivationMethod.All);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaElementDecl.cs (2)
26private XmlSchemaDerivationMethod _block; 141internal XmlSchemaDerivationMethod Block
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (45)
490if (examplar.FinalResolved == XmlSchemaDerivationMethod.All) 500if ((element.ElementDecl.Block & XmlSchemaDerivationMethod.Substitution) == 0) 619if ((type.FinalResolved & XmlSchemaDerivationMethod.List) != 0) 632simpleType.SetDerivedBy(XmlSchemaDerivationMethod.List); 663if ((type.FinalResolved & XmlSchemaDerivationMethod.Restriction) != 0) 676simpleType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction); 683simpleType.SetDerivedBy(XmlSchemaDerivationMethod.Union); 730if ((unionMember.FinalResolved & XmlSchemaDerivationMethod.Union) != 0) 768if (unionMember.DerivedBy == XmlSchemaDerivationMethod.Restriction && (unionDatatype.HasLexicalFacets || unionDatatype.HasValueFacets)) 824CompileLocalAttributes(XmlSchemaComplexType.AnyType, complexType, complexType.Attributes, complexType.AnyAttribute, XmlSchemaDerivationMethod.Restriction); 825complexType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction); 896if ((baseType.FinalResolved & XmlSchemaDerivationMethod.Extension) != 0) 905complexType.SetDerivedBy(XmlSchemaDerivationMethod.Extension); 906CompileLocalAttributes(baseType, complexType, simpleExtension.Attributes, simpleExtension.AnyAttribute, XmlSchemaDerivationMethod.Extension); 938if (!XmlSchemaType.IsDerivedFromDatatype(simpleRestriction.BaseType.Datatype, baseType.Datatype, XmlSchemaDerivationMethod.None)) 965if ((baseType.FinalResolved & XmlSchemaDerivationMethod.Restriction) != 0) 990complexType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction); 991CompileLocalAttributes(baseType, complexType, simpleRestriction.Attributes, simpleRestriction.AnyAttribute, XmlSchemaDerivationMethod.Restriction); 1011if ((baseType.FinalResolved & XmlSchemaDerivationMethod.Extension) != 0) 1015CompileLocalAttributes(baseType, complexType, complexExtension.Attributes, complexExtension.AnyAttribute, XmlSchemaDerivationMethod.Extension); 1057complexType.SetDerivedBy(XmlSchemaDerivationMethod.Extension); 1078if ((baseType.FinalResolved & XmlSchemaDerivationMethod.Restriction) != 0) 1082CompileLocalAttributes(baseType, complexType, complexRestriction.Attributes, complexRestriction.AnyAttribute, XmlSchemaDerivationMethod.Restriction); 1103complexType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction); 1110if (baseType != null && baseType != XmlSchemaComplexType.AnyType && complexType.DerivedBy == XmlSchemaDerivationMethod.Restriction) 1225if (!element.RefName.IsEmpty && (element.ElementDecl.Block & XmlSchemaDerivationMethod.Substitution) == 0) 1642XmlSchemaDerivationMethod baseEffectiveBlock = 1643baseElement.ElementDecl.Block == XmlSchemaDerivationMethod.All ? 1644XmlSchemaDerivationMethod.Substitution | XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension : 1646XmlSchemaDerivationMethod derivedEffectiveBlock = 1647derivedElement.ElementDecl.Block == XmlSchemaDerivationMethod.All ? 1648XmlSchemaDerivationMethod.Substitution | XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension : 1657XmlSchemaType.IsDerivedFrom(derivedElement.ElementSchemaType, baseElement.ElementSchemaType, ~(XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.List | XmlSchemaDerivationMethod.Union)))) 2128private void CompileLocalAttributes(XmlSchemaComplexType baseType, XmlSchemaComplexType derivedType, XmlSchemaObjectCollection attributes, XmlSchemaAnyAttribute anyAttribute, XmlSchemaDerivationMethod derivedBy) 2141(attr.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) 2167(attribute.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) 2195if (derivedBy == XmlSchemaDerivationMethod.Extension) 2259else if (attributeBase.AttributeSchemaType == null || attribute.AttributeSchemaType == null || !XmlSchemaType.IsDerivedFrom(attribute.AttributeSchemaType, attributeBase.AttributeSchemaType, XmlSchemaDerivationMethod.Empty)) 2327else if (attributeBase.AttributeSchemaType == null || attribute.AttributeSchemaType == null || !XmlSchemaType.IsDerivedFrom(attribute.AttributeSchemaType, attributeBase.AttributeSchemaType, XmlSchemaDerivationMethod.Empty))
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchema.cs (8)
37private XmlSchemaDerivationMethod _blockDefault = XmlSchemaDerivationMethod.None; 38private XmlSchemaDerivationMethod _finalDefault = XmlSchemaDerivationMethod.None; 293[XmlAttribute("blockDefault"), DefaultValue(XmlSchemaDerivationMethod.None)] 294public XmlSchemaDerivationMethod BlockDefault 304[XmlAttribute("finalDefault"), DefaultValue(XmlSchemaDerivationMethod.None)] 305public XmlSchemaDerivationMethod FinalDefault
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaComplexType.cs (8)
21private XmlSchemaDerivationMethod _block = XmlSchemaDerivationMethod.None; 29private XmlSchemaDerivationMethod _blockResolved; 162[XmlAttribute("block"), DefaultValue(XmlSchemaDerivationMethod.None)] 163public XmlSchemaDerivationMethod Block 275public XmlSchemaDerivationMethod BlockResolved 329internal void SetBlockResolved(XmlSchemaDerivationMethod value) 494_blockResolved = XmlSchemaDerivationMethod.None;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaElement.cs (14)
28private XmlSchemaDerivationMethod _block = XmlSchemaDerivationMethod.None; 29private XmlSchemaDerivationMethod _final = XmlSchemaDerivationMethod.None; 42private XmlSchemaDerivationMethod _blockResolved; 43private XmlSchemaDerivationMethod _finalResolved; 67[XmlAttribute("block"), DefaultValue(XmlSchemaDerivationMethod.None)] 68public XmlSchemaDerivationMethod Block 90[XmlAttribute("final"), DefaultValue(XmlSchemaDerivationMethod.None)] 91public XmlSchemaDerivationMethod Final 263public XmlSchemaDerivationMethod BlockResolved 273public XmlSchemaDerivationMethod FinalResolved 301internal void SetBlockResolved(XmlSchemaDerivationMethod value) 306internal void SetFinalResolved(XmlSchemaDerivationMethod value)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaType.cs (12)
23private XmlSchemaDerivationMethod _final = XmlSchemaDerivationMethod.None; 24private XmlSchemaDerivationMethod _derivedBy; 27private XmlSchemaDerivationMethod _finalResolved; 106[XmlAttribute("final"), DefaultValue(XmlSchemaDerivationMethod.None)] 107public XmlSchemaDerivationMethod Final 128public XmlSchemaDerivationMethod FinalResolved 169public XmlSchemaDerivationMethod DerivedBy 251internal void SetFinalResolved(XmlSchemaDerivationMethod value) 261internal void SetDerivedBy(XmlSchemaDerivationMethod value) 294public static bool IsDerivedFrom(XmlSchemaType derivedType, XmlSchemaType baseType, XmlSchemaDerivationMethod except) 344internal static bool IsDerivedFromDatatype(XmlSchemaDatatype derivedDataType, XmlSchemaDatatype baseDataType, XmlSchemaDerivationMethod except)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (1)
1425if ((headElem.BlockResolved & XmlSchemaDerivationMethod.Substitution) != 0)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (2)
3674while (schemaType.DerivedBy == XmlSchemaDerivationMethod.Restriction) 3678Debug.Assert(schemaType.DerivedBy == XmlSchemaDerivationMethod.Union);
FrameworkFork\Microsoft.Xml\Xml\schema\XsdBuilder.cs (14)
613(int)XmlSchemaDerivationMethod.Substitution, 614(int)XmlSchemaDerivationMethod.Extension, 615(int)XmlSchemaDerivationMethod.Restriction, 616(int)XmlSchemaDerivationMethod.List, 617(int)XmlSchemaDerivationMethod.Union, 618(int)XmlSchemaDerivationMethod.All, 1150builder._schema.FinalDefault = (XmlSchemaDerivationMethod)builder.ParseBlockFinalEnum(value, "finalDefault"); 1155builder._schema.BlockDefault = (XmlSchemaDerivationMethod)builder.ParseBlockFinalEnum(value, "blockDefault"); 1352builder._element.Block = (XmlSchemaDerivationMethod)builder.ParseBlockFinalEnum(value, "block"); 1372builder._element.Final = (XmlSchemaDerivationMethod)builder.ParseBlockFinalEnum(value, "final"); 1491builder._simpleType.Final = (XmlSchemaDerivationMethod)builder.ParseBlockFinalEnum(value, "final"); 1619builder._complexType.Block = (XmlSchemaDerivationMethod)builder.ParseBlockFinalEnum(value, "block"); 1624builder._complexType.Final = (XmlSchemaDerivationMethod)builder.ParseBlockFinalEnum(value, "final"); 2550if (r == (int)XmlSchemaDerivationMethod.All && value.Length > HashAllLength)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaObjectWriter.cs (1)
581private string Write11_XmlSchemaDerivationMethod(XmlSchemaDerivationMethod v)
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptionSerializer.cs (45)
2319if (((Microsoft.Xml.Schema.XmlSchemaDerivationMethod)o.@BlockDefault) != (Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@None)) 2321WriteAttribute(@"blockDefault", @"", Write7_XmlSchemaDerivationMethod(((Microsoft.Xml.Schema.XmlSchemaDerivationMethod)o.@BlockDefault))); 2323if (((Microsoft.Xml.Schema.XmlSchemaDerivationMethod)o.@FinalDefault) != (Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@None)) 2325WriteAttribute(@"finalDefault", @"", Write7_XmlSchemaDerivationMethod(((Microsoft.Xml.Schema.XmlSchemaDerivationMethod)o.@FinalDefault))); 2847if (((Microsoft.Xml.Schema.XmlSchemaDerivationMethod)o.@Block) != (Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@None)) 2849WriteAttribute(@"block", @"", Write7_XmlSchemaDerivationMethod(((Microsoft.Xml.Schema.XmlSchemaDerivationMethod)o.@Block))); 2852if (((Microsoft.Xml.Schema.XmlSchemaDerivationMethod)o.@Final) != (Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@None)) 2854WriteAttribute(@"final", @"", Write7_XmlSchemaDerivationMethod(((Microsoft.Xml.Schema.XmlSchemaDerivationMethod)o.@Final))); 3147if (((Microsoft.Xml.Schema.XmlSchemaDerivationMethod)o.@Final) != (Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@None)) 3149WriteAttribute(@"final", @"", Write7_XmlSchemaDerivationMethod(((Microsoft.Xml.Schema.XmlSchemaDerivationMethod)o.@Final))); 3889private string Write7_XmlSchemaDerivationMethod(Microsoft.Xml.Schema.XmlSchemaDerivationMethod v) 3894case Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@Empty: s = @""; break; 3895case Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@Substitution: s = @"substitution"; break; 3896case Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@Extension: s = @"extension"; break; 3897case Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@Restriction: s = @"restriction"; break; 3898case Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@List: s = @"list"; break; 3899case Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@Union: s = @"union"; break; 3900case Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@All: s = @"#all"; break; 3908@"#all" }, new System.Int64[] { (long)Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@Empty, 3909(long)Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@Substitution, 3910(long)Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@Extension, 3911(long)Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@Restriction, 3912(long)Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@List, 3913(long)Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@Union, 3914(long)Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@All }, @"System.Xml.Schema.XmlSchemaDerivationMethod"); break; 3953if (((Microsoft.Xml.Schema.XmlSchemaDerivationMethod)o.@Final) != (Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@None)) 3955WriteAttribute(@"final", @"", Write7_XmlSchemaDerivationMethod(((Microsoft.Xml.Schema.XmlSchemaDerivationMethod)o.@Final))); 3961if (((Microsoft.Xml.Schema.XmlSchemaDerivationMethod)o.@Block) != (Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@None)) 3963WriteAttribute(@"block", @"", Write7_XmlSchemaDerivationMethod(((Microsoft.Xml.Schema.XmlSchemaDerivationMethod)o.@Block))); 10723h.Add(@"", (long)Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@Empty); 10724h.Add(@"substitution", (long)Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@Substitution); 10725h.Add(@"extension", (long)Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@Extension); 10726h.Add(@"restriction", (long)Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@Restriction); 10727h.Add(@"list", (long)Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@List); 10728h.Add(@"union", (long)Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@Union); 10729h.Add(@"#all", (long)Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@All); 10736private Microsoft.Xml.Schema.XmlSchemaDerivationMethod Read7_XmlSchemaDerivationMethod(string s) 10738return (Microsoft.Xml.Schema.XmlSchemaDerivationMethod)ToEnum(s, XmlSchemaDerivationMethodValues, @"System.Xml.Schema.XmlSchemaDerivationMethod");