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
- System.Data_BID.cs
- WinEventQueueItem.cs
- _HelperAsyncResults.cs
- SHA512Managed.cs
- CfgParser.cs
- DirectoryGroupQuery.cs
- ActivityStatusChangeEventArgs.cs
- XmlWellformedWriterHelpers.cs
- DataPagerCommandEventArgs.cs
- RuntimeConfigurationRecord.cs
- ActivityStatusChangeEventArgs.cs
- SpeechRecognizer.cs
- InputProviderSite.cs
- X509CertificateClaimSet.cs
- SqlDataSourceParameterParser.cs
- GACIdentityPermission.cs
- EdmConstants.cs
- documentsequencetextpointer.cs
- ContentWrapperAttribute.cs
- Soap12ProtocolImporter.cs
- PhysicalFontFamily.cs
- EnumConverter.cs
- PropertyTabChangedEvent.cs
- BridgeDataRecord.cs
- ManagementOperationWatcher.cs
- VBIdentifierDesigner.xaml.cs
- BaseProcessor.cs
- GroupStyle.cs
- DesignerActionKeyboardBehavior.cs
- DataSysAttribute.cs
- WebFaultException.cs
- Oid.cs
- Accessible.cs
- ScriptResourceMapping.cs
- cookiecollection.cs
- DataServiceHostWrapper.cs
- ObjectPersistData.cs
- PageBorderless.cs
- ConnectionString.cs
- ClassicBorderDecorator.cs
- HTTPNotFoundHandler.cs
- Rect.cs
- C14NUtil.cs
- StorageEndPropertyMapping.cs
- TypeUtils.cs
- X509SecurityToken.cs
- ScrollChrome.cs
- ComponentResourceKeyConverter.cs
- Rules.cs
- UrlMappingCollection.cs
- TextTreeInsertElementUndoUnit.cs
- BamlLocalizationDictionary.cs
- Multiply.cs
- FileDataSource.cs
- assertwrapper.cs
- XmlEntity.cs
- safelinkcollection.cs
- DropDownHolder.cs
- Transform3DCollection.cs
- Matrix.cs
- InternalPermissions.cs
- DocumentManager.cs
- ParserStreamGeometryContext.cs
- AssemblyBuilderData.cs
- BamlRecordHelper.cs
- WorkerRequest.cs
- FrameworkElementFactoryMarkupObject.cs
- CompensableActivity.cs
- ContainerControlDesigner.cs
- GridItemPatternIdentifiers.cs
- UniqueEventHelper.cs
- CompModSwitches.cs
- PackageRelationship.cs
- ScriptControl.cs
- TraceXPathNavigator.cs
- TextBoxAutomationPeer.cs
- objectquery_tresulttype.cs
- ManipulationInertiaStartingEventArgs.cs
- CommonRemoteMemoryBlock.cs
- ListViewItem.cs
- HwndKeyboardInputProvider.cs
- NonBatchDirectoryCompiler.cs
- ReversePositionQuery.cs
- Underline.cs
- OdbcErrorCollection.cs
- CachedCompositeFamily.cs
- XmlExpressionDumper.cs
- OptimizedTemplateContentHelper.cs
- MissingSatelliteAssemblyException.cs
- DateTimeUtil.cs
- SecurityTokenAuthenticator.cs
- FlowDocumentFormatter.cs
- SimpleType.cs
- XmlNamedNodeMap.cs
- CodeGen.cs
- NameTable.cs
- LinkDescriptor.cs
- FormsAuthenticationUser.cs
- TraceListener.cs
- ResXBuildProvider.cs