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
- ErrorFormatter.cs
- BitStream.cs
- StorageBasedPackageProperties.cs
- SimplePropertyEntry.cs
- CodeDirectoryCompiler.cs
- TextContainerChangedEventArgs.cs
- LinqDataSourceInsertEventArgs.cs
- DeclarativeCatalogPart.cs
- Validator.cs
- WebReferencesBuildProvider.cs
- SchemaMapping.cs
- DbConnectionStringCommon.cs
- CompiledRegexRunner.cs
- WeakReference.cs
- MenuItem.cs
- HMACSHA256.cs
- SqlTypeConverter.cs
- FullTextLine.cs
- Freezable.cs
- Pipe.cs
- DataContractJsonSerializerOperationFormatter.cs
- FontUnitConverter.cs
- GridViewRowPresenter.cs
- SqlIdentifier.cs
- OletxDependentTransaction.cs
- Matrix3D.cs
- SelectedPathEditor.cs
- AspNetPartialTrustHelpers.cs
- IntranetCredentialPolicy.cs
- TableAdapterManagerMethodGenerator.cs
- Journaling.cs
- GeometryDrawing.cs
- Fonts.cs
- PortCache.cs
- PowerModeChangedEventArgs.cs
- SerializerDescriptor.cs
- PropertyTab.cs
- EventData.cs
- StickyNoteContentControl.cs
- DetailsViewPagerRow.cs
- TemplateField.cs
- ScrollChangedEventArgs.cs
- CultureInfo.cs
- FormsAuthenticationModule.cs
- BaseDataBoundControl.cs
- AppDomainManager.cs
- XpsFixedDocumentSequenceReaderWriter.cs
- WinEventWrap.cs
- RecognizerInfo.cs
- EntityEntry.cs
- Stream.cs
- EndPoint.cs
- ComplexType.cs
- SuppressMergeCheckAttribute.cs
- ResourceDefaultValueAttribute.cs
- AdRotator.cs
- SeverityFilter.cs
- ParserHooks.cs
- IISUnsafeMethods.cs
- ValidationHelper.cs
- SqlBinder.cs
- BridgeDataRecord.cs
- WebPartChrome.cs
- DependencyPropertyConverter.cs
- EventSource.cs
- TailCallAnalyzer.cs
- XmlFileEditor.cs
- Quad.cs
- NumberEdit.cs
- WebPartDescriptionCollection.cs
- MultiAsyncResult.cs
- SHA1CryptoServiceProvider.cs
- XmlSchemaAnnotated.cs
- KeyGesture.cs
- HashCodeCombiner.cs
- BaseAsyncResult.cs
- FactoryId.cs
- GridPattern.cs
- Freezable.cs
- DataGridClipboardCellContent.cs
- AngleUtil.cs
- SqlWebEventProvider.cs
- ObjectListItem.cs
- XmlCharCheckingReader.cs
- Marshal.cs
- DecoratedNameAttribute.cs
- UIElement3DAutomationPeer.cs
- _ConnectionGroup.cs
- TabControl.cs
- ProviderException.cs
- DefaultValueConverter.cs
- SettingsProperty.cs
- HttpConfigurationSystem.cs
- FontSourceCollection.cs
- WmlSelectionListAdapter.cs
- GradientStop.cs
- MembershipValidatePasswordEventArgs.cs
- Util.cs
- HttpCapabilitiesBase.cs
- XmlTypeAttribute.cs