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
- Executor.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- AssociationSet.cs
- OdbcEnvironmentHandle.cs
- ObjectHandle.cs
- VisualTransition.cs
- PermissionToken.cs
- ParsedAttributeCollection.cs
- SelectingProviderEventArgs.cs
- MsmqMessage.cs
- WebPartConnectionsEventArgs.cs
- ScrollBarAutomationPeer.cs
- EncryptedPackageFilter.cs
- _LocalDataStore.cs
- InitializeCorrelation.cs
- DataReceivedEventArgs.cs
- Light.cs
- StringUtil.cs
- NullExtension.cs
- DesignTimeSiteMapProvider.cs
- MetabaseServerConfig.cs
- PixelFormat.cs
- TextTreeObjectNode.cs
- ParallelLoopState.cs
- RolePrincipal.cs
- WebPartDesigner.cs
- LinqDataSourceValidationException.cs
- SectionInput.cs
- RectangleGeometry.cs
- TabPage.cs
- HttpStreamMessageEncoderFactory.cs
- HyperLinkStyle.cs
- LinearKeyFrames.cs
- UnmanagedMemoryStreamWrapper.cs
- SqlProvider.cs
- CalendarDay.cs
- ScrollChrome.cs
- TTSEvent.cs
- IntSecurity.cs
- DataReceivedEventArgs.cs
- LocalizationParserHooks.cs
- BasicExpressionVisitor.cs
- GeometryValueSerializer.cs
- GB18030Encoding.cs
- VisualStyleRenderer.cs
- NativeActivityAbortContext.cs
- HandledMouseEvent.cs
- AdapterDictionary.cs
- CodeComment.cs
- AssemblyUtil.cs
- TextEditorMouse.cs
- AssociatedControlConverter.cs
- StorageBasedPackageProperties.cs
- SerTrace.cs
- Timer.cs
- categoryentry.cs
- DataServiceExpressionVisitor.cs
- PermissionSetEnumerator.cs
- SettingsPropertyValueCollection.cs
- AliasedSlot.cs
- XamlPoint3DCollectionSerializer.cs
- UnsafeNativeMethodsTablet.cs
- AsmxEndpointPickerExtension.cs
- OdbcPermission.cs
- MessageContractAttribute.cs
- ExpressionReplacer.cs
- PeerName.cs
- PrintController.cs
- Vector3DAnimation.cs
- InheritablePropertyChangeInfo.cs
- ExpressionTextBoxAutomationPeer.cs
- StringComparer.cs
- AutomationIdentifierGuids.cs
- DataGridHeaderBorder.cs
- FilterElement.cs
- MethodRental.cs
- CodeTypeMemberCollection.cs
- SettingsAttributes.cs
- BCryptSafeHandles.cs
- GeometryHitTestParameters.cs
- HtmlHead.cs
- PolyLineSegmentFigureLogic.cs
- ParserContext.cs
- ResourceProperty.cs
- ResXResourceReader.cs
- OpenFileDialog.cs
- Underline.cs
- SequenceQuery.cs
- HMACSHA256.cs
- CodeArrayCreateExpression.cs
- ScriptControlManager.cs
- QuaternionConverter.cs
- PolyLineSegmentFigureLogic.cs
- Button.cs
- HtmlInputText.cs
- EventLogPermissionEntry.cs
- LoadGrammarCompletedEventArgs.cs
- ToolboxComponentsCreatedEventArgs.cs
- RijndaelCryptoServiceProvider.cs
- PeerNearMe.cs