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
- Stopwatch.cs
- CalendarAutomationPeer.cs
- QueryableDataSourceView.cs
- DesignerDataSourceView.cs
- EnumerableRowCollection.cs
- SafeRightsManagementHandle.cs
- DataColumn.cs
- KeyedCollection.cs
- DataBinder.cs
- SoapEnumAttribute.cs
- RecognizeCompletedEventArgs.cs
- AQNBuilder.cs
- UserNameSecurityTokenAuthenticator.cs
- FirewallWrapper.cs
- _SingleItemRequestCache.cs
- BamlBinaryWriter.cs
- OdbcConnectionPoolProviderInfo.cs
- DllNotFoundException.cs
- DataGridLinkButton.cs
- ValidationRule.cs
- XsdBuildProvider.cs
- IdleTimeoutMonitor.cs
- Lasso.cs
- SafeNativeMethods.cs
- XmlLoader.cs
- AnimationException.cs
- selecteditemcollection.cs
- GradientSpreadMethodValidation.cs
- TraceEventCache.cs
- ViewLoader.cs
- DefaultTextStore.cs
- XmlDownloadManager.cs
- RegistrationProxy.cs
- BamlRecords.cs
- TextEmbeddedObject.cs
- Fx.cs
- SafeFileMappingHandle.cs
- SendKeys.cs
- DisplayMemberTemplateSelector.cs
- FreeIndexList.cs
- SQLDateTime.cs
- DataSourceHelper.cs
- DateTimeOffsetConverter.cs
- StateWorkerRequest.cs
- SQLStringStorage.cs
- Deserializer.cs
- ErrorWrapper.cs
- DBBindings.cs
- InstanceData.cs
- MasterPageParser.cs
- ScriptRef.cs
- securitycriticaldataformultiplegetandset.cs
- CorrelationValidator.cs
- TypeConverterHelper.cs
- FontUnitConverter.cs
- EmptyEnumerator.cs
- TemplateField.cs
- WebPartRestoreVerb.cs
- DoubleUtil.cs
- BitStream.cs
- RecommendedAsConfigurableAttribute.cs
- AddInDeploymentState.cs
- XPathNavigator.cs
- MachineKeySection.cs
- Math.cs
- TableParagraph.cs
- ByteAnimationBase.cs
- UnaryOperationBinder.cs
- ThemeableAttribute.cs
- ScriptIgnoreAttribute.cs
- SqlDataSourceCache.cs
- CustomActivityDesigner.cs
- ButtonRenderer.cs
- VirtualPathProvider.cs
- WebRequestModulesSection.cs
- InputBinding.cs
- HtmlPanelAdapter.cs
- LineServices.cs
- TokenBasedSetEnumerator.cs
- HandlerElementCollection.cs
- SmtpCommands.cs
- LongTypeConverter.cs
- ExpandableObjectConverter.cs
- HighlightVisual.cs
- WpfXamlLoader.cs
- LineProperties.cs
- SQLInt16.cs
- GeometryConverter.cs
- SqlAggregateChecker.cs
- ControlCachePolicy.cs
- DataGridHeaderBorder.cs
- ModifierKeysValueSerializer.cs
- DataGridRelationshipRow.cs
- HostingPreferredMapPath.cs
- HandleTable.cs
- NumericPagerField.cs
- ServiceOperationParameter.cs
- HiddenField.cs
- KeyInstance.cs
- X509SecurityTokenProvider.cs