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
- ProfileService.cs
- CompiledQueryCacheKey.cs
- InteropBitmapSource.cs
- HeaderCollection.cs
- AssemblyResourceLoader.cs
- DbModificationClause.cs
- ProfessionalColorTable.cs
- InputChannelAcceptor.cs
- InternalConfigHost.cs
- BuildManagerHost.cs
- LogicalExpr.cs
- StructuralType.cs
- UnionExpr.cs
- CurrentChangingEventManager.cs
- WaitForChangedResult.cs
- BooleanSwitch.cs
- ReferencedCollectionType.cs
- JulianCalendar.cs
- HMACSHA512.cs
- Executor.cs
- SrgsDocument.cs
- Random.cs
- Int16Converter.cs
- EdmRelationshipRoleAttribute.cs
- TypeInitializationException.cs
- TransformerConfigurationWizardBase.cs
- TagPrefixInfo.cs
- SqlDataSourceSelectingEventArgs.cs
- SignatureToken.cs
- updatecommandorderer.cs
- ProfileModule.cs
- SSmlParser.cs
- ToolTipService.cs
- ProtectedConfigurationProviderCollection.cs
- UpWmlPageAdapter.cs
- OdbcRowUpdatingEvent.cs
- GraphicsContainer.cs
- FormatException.cs
- ScriptRegistrationManager.cs
- ClaimComparer.cs
- ColorAnimation.cs
- SapiRecoContext.cs
- DBSqlParserColumnCollection.cs
- Parameter.cs
- HostingPreferredMapPath.cs
- PrinterResolution.cs
- HtmlSelect.cs
- CollectionChangedEventManager.cs
- LocatorPart.cs
- RequestTimeoutManager.cs
- ComplexPropertyEntry.cs
- XmlImplementation.cs
- ExpressionHelper.cs
- InstallerTypeAttribute.cs
- GlobalAllocSafeHandle.cs
- ListViewDeleteEventArgs.cs
- ProjectionPlan.cs
- InputLanguageSource.cs
- SubclassTypeValidatorAttribute.cs
- IIS7UserPrincipal.cs
- BlurEffect.cs
- XmlCountingReader.cs
- RepeaterItem.cs
- DefaultValueAttribute.cs
- OdbcFactory.cs
- ChtmlMobileTextWriter.cs
- Subtree.cs
- ModelTreeEnumerator.cs
- CustomCategoryAttribute.cs
- RangeValuePatternIdentifiers.cs
- GridItemPattern.cs
- DataViewListener.cs
- BaseResourcesBuildProvider.cs
- ParentUndoUnit.cs
- LinkLabelLinkClickedEvent.cs
- ExpressionLink.cs
- ValidatingReaderNodeData.cs
- DiagnosticsConfiguration.cs
- DispatcherHookEventArgs.cs
- LineSegment.cs
- SplitContainer.cs
- TextOptionsInternal.cs
- Cursor.cs
- Convert.cs
- FramingEncoders.cs
- SizeAnimationClockResource.cs
- RequestUriProcessor.cs
- COM2PictureConverter.cs
- ArraySubsetEnumerator.cs
- HandleCollector.cs
- LinkClickEvent.cs
- GridViewColumnHeaderAutomationPeer.cs
- BindingsCollection.cs
- MultipleCopiesCollection.cs
- ConditionedDesigner.cs
- Figure.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- KeyValueConfigurationElement.cs
- CollectionViewGroup.cs
- ObjectAssociationEndMapping.cs