Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaFacet.cs / 1305376 / XmlSchemaFacet.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Schema { using System.ComponentModel; using System.Xml.Serialization; internal enum FacetType { None, Length, MinLength, MaxLength, Pattern, Whitespace, Enumeration, MinExclusive, MinInclusive, MaxExclusive, MaxInclusive, TotalDigits, FractionDigits, } ///public abstract class XmlSchemaFacet : XmlSchemaAnnotated { string value; bool isFixed; FacetType facetType; /// [XmlAttribute("value")] public string Value { get { return this.value; } set { this.value = value; } } /// [XmlAttribute("fixed"), DefaultValue(false)] public virtual bool IsFixed { get { return isFixed; } set { if (!(this is XmlSchemaEnumerationFacet) && !(this is XmlSchemaPatternFacet)) { isFixed = value; } } } internal FacetType FacetType { get { return facetType; } set { facetType = value; } } } /// public abstract class XmlSchemaNumericFacet : XmlSchemaFacet { } /// public class XmlSchemaLengthFacet : XmlSchemaNumericFacet { public XmlSchemaLengthFacet() { FacetType = FacetType.Length; } } /// public class XmlSchemaMinLengthFacet : XmlSchemaNumericFacet { public XmlSchemaMinLengthFacet() { FacetType = FacetType.MinLength; } } /// public class XmlSchemaMaxLengthFacet : XmlSchemaNumericFacet { public XmlSchemaMaxLengthFacet() { FacetType = FacetType.MaxLength; } } /// public class XmlSchemaPatternFacet : XmlSchemaFacet { public XmlSchemaPatternFacet() { FacetType = FacetType.Pattern; } } /// public class XmlSchemaEnumerationFacet : XmlSchemaFacet { public XmlSchemaEnumerationFacet() { FacetType = FacetType.Enumeration; } } /// public class XmlSchemaMinExclusiveFacet : XmlSchemaFacet { public XmlSchemaMinExclusiveFacet() { FacetType = FacetType.MinExclusive; } } /// public class XmlSchemaMinInclusiveFacet : XmlSchemaFacet { public XmlSchemaMinInclusiveFacet() { FacetType = FacetType.MinInclusive; } } /// public class XmlSchemaMaxExclusiveFacet : XmlSchemaFacet { public XmlSchemaMaxExclusiveFacet() { FacetType = FacetType.MaxExclusive; } } /// public class XmlSchemaMaxInclusiveFacet : XmlSchemaFacet { public XmlSchemaMaxInclusiveFacet() { FacetType = FacetType.MaxInclusive; } } /// public class XmlSchemaTotalDigitsFacet : XmlSchemaNumericFacet { public XmlSchemaTotalDigitsFacet() { FacetType = FacetType.TotalDigits; } } /// public class XmlSchemaFractionDigitsFacet : XmlSchemaNumericFacet { public XmlSchemaFractionDigitsFacet() { FacetType = FacetType.FractionDigits; } } /// public class XmlSchemaWhiteSpaceFacet : XmlSchemaFacet { public XmlSchemaWhiteSpaceFacet() { FacetType = FacetType.Whitespace; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- File.cs
- XmlSchemaObject.cs
- AssemblyCache.cs
- Decimal.cs
- GeneralTransform3DCollection.cs
- ToolStripManager.cs
- XmlDigitalSignatureProcessor.cs
- OleDbConnection.cs
- StreamGeometry.cs
- CodeMemberField.cs
- StateMachineWorkflowInstance.cs
- EntryWrittenEventArgs.cs
- RoutedCommand.cs
- HttpResponseInternalWrapper.cs
- UrlPath.cs
- SqlOuterApplyReducer.cs
- BackgroundWorker.cs
- UnionExpr.cs
- DependencyPropertyKind.cs
- DocumentGrid.cs
- EntityTypeEmitter.cs
- sqlcontext.cs
- ObjectNotFoundException.cs
- Token.cs
- FlowLayoutSettings.cs
- RemoteWebConfigurationHost.cs
- RuleValidation.cs
- DataGridColumn.cs
- ChtmlLinkAdapter.cs
- GeometryCollection.cs
- DiagnosticTraceSchemas.cs
- ProcessModelSection.cs
- EndpointAddressElementBase.cs
- BindingValueChangedEventArgs.cs
- ConfigurationSectionGroupCollection.cs
- querybuilder.cs
- ResourceExpressionBuilder.cs
- ArgIterator.cs
- DictionaryBase.cs
- TypedDataSourceCodeGenerator.cs
- LinkConverter.cs
- SecurityDocument.cs
- StylusButtonCollection.cs
- GlyphElement.cs
- XmlDataSourceNodeDescriptor.cs
- Renderer.cs
- XpsFilter.cs
- BitmapPalettes.cs
- WindowsStatic.cs
- SectionXmlInfo.cs
- COM2ColorConverter.cs
- Events.cs
- FacetChecker.cs
- TextServicesDisplayAttribute.cs
- LineGeometry.cs
- QilIterator.cs
- ClientSession.cs
- DataReaderContainer.cs
- BaseAsyncResult.cs
- NativeConfigurationLoader.cs
- Stack.cs
- ValidationHelper.cs
- MinMaxParagraphWidth.cs
- UserNameSecurityTokenAuthenticator.cs
- XPathCompileException.cs
- MouseEventArgs.cs
- StructuredTypeInfo.cs
- SAPIEngineTypes.cs
- XPathSingletonIterator.cs
- LinqDataSourceInsertEventArgs.cs
- ContentTextAutomationPeer.cs
- NativeMethods.cs
- ArraySortHelper.cs
- BindMarkupExtensionSerializer.cs
- ResourcePart.cs
- IpcPort.cs
- DiscoveryDocumentSerializer.cs
- CustomGrammar.cs
- WebEventCodes.cs
- ListViewAutomationPeer.cs
- TrackingStringDictionary.cs
- TripleDESCryptoServiceProvider.cs
- TdsParserSessionPool.cs
- SystemPens.cs
- EventWaitHandle.cs
- DesignTimeTemplateParser.cs
- HtmlLink.cs
- WCFBuildProvider.cs
- XmlRawWriter.cs
- VersionUtil.cs
- TemplateBuilder.cs
- VirtualDirectoryMappingCollection.cs
- AsymmetricKeyExchangeDeformatter.cs
- DrawListViewSubItemEventArgs.cs
- FileReservationCollection.cs
- StructuralObject.cs
- FixedSOMPageElement.cs
- UshortList2.cs
- SelectionEditor.cs
- NamedElement.cs