Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaFacet.cs / 2 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NumberFormatInfo.cs
- CacheMemory.cs
- JsonQNameDataContract.cs
- SplineKeyFrames.cs
- EditorZoneBase.cs
- GlobalDataBindingHandler.cs
- UserControlCodeDomTreeGenerator.cs
- XmlDocument.cs
- StylusButtonCollection.cs
- ThumbAutomationPeer.cs
- BindingMemberInfo.cs
- VariantWrapper.cs
- WindowsStatic.cs
- DBCSCodePageEncoding.cs
- DataRowView.cs
- SplayTreeNode.cs
- ObjectManager.cs
- CategoryValueConverter.cs
- Model3DCollection.cs
- ResolveDuplexAsyncResult.cs
- DotAtomReader.cs
- WindowsToolbarAsMenu.cs
- SharedStatics.cs
- UIHelper.cs
- TransformerInfoCollection.cs
- SqlGenerator.cs
- HtmlGenericControl.cs
- SimpleApplicationHost.cs
- VerificationAttribute.cs
- EncoderNLS.cs
- BrowsableAttribute.cs
- UserControl.cs
- ProfileGroupSettings.cs
- FloaterBaseParaClient.cs
- BuildProvidersCompiler.cs
- GlobalizationSection.cs
- ClipboardData.cs
- ColumnClickEvent.cs
- FontStyleConverter.cs
- DataGridViewSelectedCellCollection.cs
- RestClientProxyHandler.cs
- ClockController.cs
- Set.cs
- MultitargetUtil.cs
- versioninfo.cs
- BitmapCodecInfo.cs
- BamlLocalizableResourceKey.cs
- EventProvider.cs
- SystemSounds.cs
- DropDownList.cs
- RectConverter.cs
- DataSet.cs
- FocusWithinProperty.cs
- Model3D.cs
- TreeNodeBindingCollection.cs
- SafeNativeMethods.cs
- NamedPipeProcessProtocolHandler.cs
- NotImplementedException.cs
- InputLangChangeRequestEvent.cs
- StringPropertyBuilder.cs
- BindingManagerDataErrorEventArgs.cs
- MailWebEventProvider.cs
- TripleDESCryptoServiceProvider.cs
- MenuItemCollection.cs
- X509ChainPolicy.cs
- XmlSchemaAppInfo.cs
- IgnoreSectionHandler.cs
- DrawingVisual.cs
- UTF8Encoding.cs
- SqlProviderUtilities.cs
- LogExtent.cs
- ImageListStreamer.cs
- WebPartsSection.cs
- DesignerAdRotatorAdapter.cs
- ThreadAttributes.cs
- BridgeDataRecord.cs
- DataRelationCollection.cs
- StyleSheet.cs
- FontEmbeddingManager.cs
- InputBinding.cs
- ServiceContractDetailViewControl.cs
- ScrollChrome.cs
- AttributeAction.cs
- Rect3D.cs
- ToolStripLocationCancelEventArgs.cs
- Trustee.cs
- TextEditorCopyPaste.cs
- IODescriptionAttribute.cs
- IItemContainerGenerator.cs
- Tablet.cs
- RijndaelManagedTransform.cs
- TextParagraphProperties.cs
- StrongNameIdentityPermission.cs
- CompositeCollectionView.cs
- safelink.cs
- HandlerBase.cs
- UnescapedXmlDiagnosticData.cs
- CollectionViewGroupRoot.cs
- BuilderPropertyEntry.cs
- PackageRelationship.cs