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
- SystemResourceHost.cs
- NullExtension.cs
- ProxyHelper.cs
- MultiPropertyDescriptorGridEntry.cs
- Rect.cs
- ControlBindingsCollection.cs
- HandlerBase.cs
- XmlBinaryWriterSession.cs
- SelectedDatesCollection.cs
- PageFunction.cs
- Boolean.cs
- TableCellCollection.cs
- EventMappingSettings.cs
- DataTableClearEvent.cs
- LinearQuaternionKeyFrame.cs
- PcmConverter.cs
- SkipStoryboardToFill.cs
- PlaceHolder.cs
- SwitchAttribute.cs
- CookielessHelper.cs
- ZipIOBlockManager.cs
- DoubleIndependentAnimationStorage.cs
- TypedElement.cs
- LinqDataSourceValidationException.cs
- TransformerTypeCollection.cs
- SoapAttributes.cs
- WebPageTraceListener.cs
- TextProviderWrapper.cs
- WebResourceUtil.cs
- XmlChoiceIdentifierAttribute.cs
- EncodingNLS.cs
- EntityTypeEmitter.cs
- DataSourceProvider.cs
- DesignerOptionService.cs
- NativeMethods.cs
- PackagePart.cs
- InstalledFontCollection.cs
- ActivityDesignerResources.cs
- PageAdapter.cs
- PerformanceCounterManager.cs
- EventLogPermissionAttribute.cs
- EventLogPermission.cs
- WaitForChangedResult.cs
- M3DUtil.cs
- DataTable.cs
- EntityContainerEmitter.cs
- QueryStack.cs
- EditorZoneBase.cs
- SafeProcessHandle.cs
- MultiSelectRootGridEntry.cs
- ReversePositionQuery.cs
- ViewKeyConstraint.cs
- XmlDocumentType.cs
- MultiplexingFormatMapping.cs
- MemberListBinding.cs
- XamlSerializationHelper.cs
- AbstractExpressions.cs
- PersonalizationDictionary.cs
- BindToObject.cs
- smtppermission.cs
- Perspective.cs
- sqlmetadatafactory.cs
- IDReferencePropertyAttribute.cs
- DataGridViewCellStateChangedEventArgs.cs
- VariableAction.cs
- CatalogPart.cs
- CommentEmitter.cs
- ForwardPositionQuery.cs
- PixelFormats.cs
- ConfigurationPropertyCollection.cs
- KnownIds.cs
- OutOfProcStateClientManager.cs
- SiteMapDataSourceView.cs
- QuaternionRotation3D.cs
- Int32CollectionConverter.cs
- ITreeGenerator.cs
- PhoneCallDesigner.cs
- ExtentKey.cs
- CacheMemory.cs
- DocumentViewerHelper.cs
- DecimalStorage.cs
- Clause.cs
- RoleServiceManager.cs
- DomainLiteralReader.cs
- ClickablePoint.cs
- ReflectionPermission.cs
- DataGridItemCollection.cs
- ProfileSettingsCollection.cs
- TransformConverter.cs
- QueryStringParameter.cs
- WindowsProgressbar.cs
- CodeLinePragma.cs
- figurelengthconverter.cs
- AcceleratedTokenAuthenticator.cs
- ApplyImportsAction.cs
- GetParentChain.cs
- ClientCultureInfo.cs
- ParagraphResult.cs
- XDeferredAxisSource.cs
- HotSpotCollection.cs