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
- LoginCancelEventArgs.cs
- TripleDESCryptoServiceProvider.cs
- FacetDescriptionElement.cs
- SystemGatewayIPAddressInformation.cs
- BitmapImage.cs
- Font.cs
- PropertyInfo.cs
- DataTable.cs
- ComplexTypeEmitter.cs
- SqlExpressionNullability.cs
- HtmlMeta.cs
- HtmlTableRowCollection.cs
- TextEditorTyping.cs
- Evaluator.cs
- WebResponse.cs
- CodeDomConfigurationHandler.cs
- InputQueue.cs
- TraceLevelStore.cs
- UnsafeCollabNativeMethods.cs
- FileSystemInfo.cs
- DefaultShape.cs
- PropertyGridView.cs
- WindowsGraphics2.cs
- Stream.cs
- ProcessInfo.cs
- HitTestDrawingContextWalker.cs
- Expr.cs
- FixedElement.cs
- CurrencyWrapper.cs
- MarkupExtensionSerializer.cs
- IdentityReference.cs
- DynamicValidatorEventArgs.cs
- LocalizedNameDescriptionPair.cs
- SqlConnectionPoolGroupProviderInfo.cs
- MethodToken.cs
- CaseCqlBlock.cs
- Content.cs
- ControlBuilder.cs
- ContainerSelectorBehavior.cs
- AvTraceDetails.cs
- Byte.cs
- NavigatorInvalidBodyAccessException.cs
- X509InitiatorCertificateClientElement.cs
- DbConnectionPoolGroupProviderInfo.cs
- PerfService.cs
- GeometryCollection.cs
- TextInfo.cs
- ToolStripContentPanel.cs
- ExpressionConverter.cs
- EmptyStringExpandableObjectConverter.cs
- SlipBehavior.cs
- GridProviderWrapper.cs
- RegionIterator.cs
- AnnotationResourceCollection.cs
- XmlDeclaration.cs
- ToolStripSplitStackLayout.cs
- CacheAxisQuery.cs
- EntityDesignerBuildProvider.cs
- TabControlCancelEvent.cs
- NodeInfo.cs
- DecoderExceptionFallback.cs
- PropertyGrid.cs
- DESCryptoServiceProvider.cs
- OrderedDictionaryStateHelper.cs
- AssemblyCollection.cs
- StrongNameKeyPair.cs
- RelationshipWrapper.cs
- ObjectDataSourceDesigner.cs
- propertytag.cs
- ClientEventManager.cs
- DesignOnlyAttribute.cs
- VirtualStackFrame.cs
- RuleConditionDialog.Designer.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- SerialPort.cs
- PresentationUIStyleResources.cs
- elementinformation.cs
- SchemaType.cs
- PrintDialogException.cs
- WebControlParameterProxy.cs
- AliasedSlot.cs
- TTSEngineProxy.cs
- TextPattern.cs
- UnknownBitmapEncoder.cs
- IgnoreDeviceFilterElementCollection.cs
- FormattedTextSymbols.cs
- FormsAuthenticationTicket.cs
- MessageQueueKey.cs
- BitmapEffectGroup.cs
- SocketSettings.cs
- LoadedOrUnloadedOperation.cs
- PermissionSetTriple.cs
- HtmlListAdapter.cs
- WmpBitmapDecoder.cs
- ListSortDescriptionCollection.cs
- StackSpiller.Bindings.cs
- TypeResolver.cs
- GroupBoxAutomationPeer.cs
- StrongNamePublicKeyBlob.cs
- CompiledELinqQueryState.cs