Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaSimpleTypeRestriction.cs / 1305376 / XmlSchemaSimpleTypeRestriction.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
namespace System.Xml.Schema {
using System.Collections;
using System.Xml.Serialization;
///
///
/// [To be supplied.]
///
public class XmlSchemaSimpleTypeRestriction : XmlSchemaSimpleTypeContent {
XmlQualifiedName baseTypeName = XmlQualifiedName.Empty;
XmlSchemaSimpleType baseType;
XmlSchemaObjectCollection facets = new XmlSchemaObjectCollection();
///
///
/// [To be supplied.]
///
[XmlAttribute("base")]
public XmlQualifiedName BaseTypeName {
get { return baseTypeName; }
set { baseTypeName = (value == null ? XmlQualifiedName.Empty : value); }
}
///
///
/// [To be supplied.]
///
[XmlElement("simpleType", typeof(XmlSchemaSimpleType))]
public XmlSchemaSimpleType BaseType {
get { return baseType; }
set { baseType = value; }
}
///
///
/// [To be supplied.]
///
[XmlElement("length", typeof(XmlSchemaLengthFacet)),
XmlElement("minLength", typeof(XmlSchemaMinLengthFacet)),
XmlElement("maxLength", typeof(XmlSchemaMaxLengthFacet)),
XmlElement("pattern", typeof(XmlSchemaPatternFacet)),
XmlElement("enumeration", typeof(XmlSchemaEnumerationFacet)),
XmlElement("maxInclusive", typeof(XmlSchemaMaxInclusiveFacet)),
XmlElement("maxExclusive", typeof(XmlSchemaMaxExclusiveFacet)),
XmlElement("minInclusive", typeof(XmlSchemaMinInclusiveFacet)),
XmlElement("minExclusive", typeof(XmlSchemaMinExclusiveFacet)),
XmlElement("totalDigits", typeof(XmlSchemaTotalDigitsFacet)),
XmlElement("fractionDigits", typeof(XmlSchemaFractionDigitsFacet)),
XmlElement("whiteSpace", typeof(XmlSchemaWhiteSpaceFacet))]
public XmlSchemaObjectCollection Facets {
get { return facets; }
}
internal override XmlSchemaObject Clone() {
XmlSchemaSimpleTypeRestriction newRestriction = (XmlSchemaSimpleTypeRestriction)MemberwiseClone();
newRestriction.BaseTypeName = baseTypeName.Clone();
return newRestriction;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
namespace System.Xml.Schema {
using System.Collections;
using System.Xml.Serialization;
///
///
/// [To be supplied.]
///
public class XmlSchemaSimpleTypeRestriction : XmlSchemaSimpleTypeContent {
XmlQualifiedName baseTypeName = XmlQualifiedName.Empty;
XmlSchemaSimpleType baseType;
XmlSchemaObjectCollection facets = new XmlSchemaObjectCollection();
///
///
/// [To be supplied.]
///
[XmlAttribute("base")]
public XmlQualifiedName BaseTypeName {
get { return baseTypeName; }
set { baseTypeName = (value == null ? XmlQualifiedName.Empty : value); }
}
///
///
/// [To be supplied.]
///
[XmlElement("simpleType", typeof(XmlSchemaSimpleType))]
public XmlSchemaSimpleType BaseType {
get { return baseType; }
set { baseType = value; }
}
///
///
/// [To be supplied.]
///
[XmlElement("length", typeof(XmlSchemaLengthFacet)),
XmlElement("minLength", typeof(XmlSchemaMinLengthFacet)),
XmlElement("maxLength", typeof(XmlSchemaMaxLengthFacet)),
XmlElement("pattern", typeof(XmlSchemaPatternFacet)),
XmlElement("enumeration", typeof(XmlSchemaEnumerationFacet)),
XmlElement("maxInclusive", typeof(XmlSchemaMaxInclusiveFacet)),
XmlElement("maxExclusive", typeof(XmlSchemaMaxExclusiveFacet)),
XmlElement("minInclusive", typeof(XmlSchemaMinInclusiveFacet)),
XmlElement("minExclusive", typeof(XmlSchemaMinExclusiveFacet)),
XmlElement("totalDigits", typeof(XmlSchemaTotalDigitsFacet)),
XmlElement("fractionDigits", typeof(XmlSchemaFractionDigitsFacet)),
XmlElement("whiteSpace", typeof(XmlSchemaWhiteSpaceFacet))]
public XmlSchemaObjectCollection Facets {
get { return facets; }
}
internal override XmlSchemaObject Clone() {
XmlSchemaSimpleTypeRestriction newRestriction = (XmlSchemaSimpleTypeRestriction)MemberwiseClone();
newRestriction.BaseTypeName = baseTypeName.Clone();
return newRestriction;
}
}
}
// 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
- TableItemProviderWrapper.cs
- Logging.cs
- DesignerTransaction.cs
- ScriptingProfileServiceSection.cs
- EventsTab.cs
- OleDbEnumerator.cs
- ProtocolsConfiguration.cs
- UniqueEventHelper.cs
- AutomationPatternInfo.cs
- RandomNumberGenerator.cs
- SQLByteStorage.cs
- SafeHandle.cs
- EventHandlerList.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- NavigationFailedEventArgs.cs
- AesManaged.cs
- indexingfiltermarshaler.cs
- TreeNodeStyleCollection.cs
- WaitHandleCannotBeOpenedException.cs
- TreeNodeSelectionProcessor.cs
- EventToken.cs
- PositiveTimeSpanValidatorAttribute.cs
- DeadCharTextComposition.cs
- AutomationElement.cs
- HttpWebRequest.cs
- AnimationClock.cs
- RenderCapability.cs
- WebPartDisplayMode.cs
- DictionaryEntry.cs
- RequestCache.cs
- NavigationCommands.cs
- List.cs
- ExpressionBuilderContext.cs
- HttpChannelHelper.cs
- Stack.cs
- BlockUIContainer.cs
- ComPlusDiagnosticTraceRecords.cs
- DataContractSerializerFaultFormatter.cs
- LifetimeServices.cs
- XmlSchemaExporter.cs
- sitestring.cs
- HttpAsyncResult.cs
- Size3DConverter.cs
- PathGeometry.cs
- CfgRule.cs
- SqlFormatter.cs
- ModelFunctionTypeElement.cs
- graph.cs
- CancellationTokenSource.cs
- PropertyChangingEventArgs.cs
- mactripleDES.cs
- QuaternionConverter.cs
- IncrementalCompileAnalyzer.cs
- Pool.cs
- SchemaExporter.cs
- Signature.cs
- AlgoModule.cs
- PersonalizationStateInfo.cs
- XPathScanner.cs
- UriParserTemplates.cs
- SerializationSectionGroup.cs
- HttpCachePolicy.cs
- DateTimeConverter2.cs
- MonthCalendarDesigner.cs
- SystemTcpConnection.cs
- cookie.cs
- QilPatternFactory.cs
- CompilerState.cs
- OrderedDictionary.cs
- ColumnHeader.cs
- Variant.cs
- StorageBasedPackageProperties.cs
- InheritedPropertyChangedEventArgs.cs
- WindowsEditBoxRange.cs
- StagingAreaInputItem.cs
- OLEDB_Util.cs
- RegexMatchCollection.cs
- EventLogPermissionEntry.cs
- CodeRegionDirective.cs
- CheckBoxBaseAdapter.cs
- EventLogHandle.cs
- ReadOnlyDictionary.cs
- CmsUtils.cs
- CopyNamespacesAction.cs
- ClientUriBehavior.cs
- AssemblyAssociatedContentFileAttribute.cs
- UIHelper.cs
- SecurityTokenException.cs
- DataContractSerializerOperationFormatter.cs
- ContentValidator.cs
- PropertiesTab.cs
- BuildManagerHost.cs
- DataControlFieldsEditor.cs
- DataControlExtensions.cs
- WebHttpSecurityElement.cs
- SetIterators.cs
- ListViewItemSelectionChangedEvent.cs
- RtfControlWordInfo.cs
- ResourceReader.cs
- BookmarkTable.cs