Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaSimpleType.cs / 1 / XmlSchemaSimpleType.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
namespace System.Xml.Schema {
using System.Xml.Serialization;
using System.Diagnostics;
///
///
/// [To be supplied.]
///
public class XmlSchemaSimpleType : XmlSchemaType {
XmlSchemaSimpleTypeContent content;
///
///
/// [To be supplied.]
///
public XmlSchemaSimpleType() {
Debug.Assert(SchemaContentType == XmlSchemaContentType.TextOnly);
}
///
[XmlElement("restriction", typeof(XmlSchemaSimpleTypeRestriction)),
XmlElement("list", typeof(XmlSchemaSimpleTypeList)),
XmlElement("union", typeof(XmlSchemaSimpleTypeUnion))]
public XmlSchemaSimpleTypeContent Content {
get { return content; }
set { content = value; }
}
internal override XmlQualifiedName DerivedFrom {
get {
if (content == null) {
// type derived from anyType
return XmlQualifiedName.Empty;
}
if (content is XmlSchemaSimpleTypeRestriction) {
return ((XmlSchemaSimpleTypeRestriction)content).BaseTypeName;
}
return XmlQualifiedName.Empty;
}
}
internal override XmlSchemaObject Clone() {
XmlSchemaSimpleType newSimpleType = (XmlSchemaSimpleType)MemberwiseClone();
if (content != null) {
newSimpleType.Content = (XmlSchemaSimpleTypeContent)content.Clone();
}
return newSimpleType;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
namespace System.Xml.Schema {
using System.Xml.Serialization;
using System.Diagnostics;
///
///
/// [To be supplied.]
///
public class XmlSchemaSimpleType : XmlSchemaType {
XmlSchemaSimpleTypeContent content;
///
///
/// [To be supplied.]
///
public XmlSchemaSimpleType() {
Debug.Assert(SchemaContentType == XmlSchemaContentType.TextOnly);
}
///
[XmlElement("restriction", typeof(XmlSchemaSimpleTypeRestriction)),
XmlElement("list", typeof(XmlSchemaSimpleTypeList)),
XmlElement("union", typeof(XmlSchemaSimpleTypeUnion))]
public XmlSchemaSimpleTypeContent Content {
get { return content; }
set { content = value; }
}
internal override XmlQualifiedName DerivedFrom {
get {
if (content == null) {
// type derived from anyType
return XmlQualifiedName.Empty;
}
if (content is XmlSchemaSimpleTypeRestriction) {
return ((XmlSchemaSimpleTypeRestriction)content).BaseTypeName;
}
return XmlQualifiedName.Empty;
}
}
internal override XmlSchemaObject Clone() {
XmlSchemaSimpleType newSimpleType = (XmlSchemaSimpleType)MemberwiseClone();
if (content != null) {
newSimpleType.Content = (XmlSchemaSimpleTypeContent)content.Clone();
}
return newSimpleType;
}
}
}
// 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
- LineInfo.cs
- XhtmlBasicPageAdapter.cs
- DNS.cs
- ObjectDataSourceDisposingEventArgs.cs
- PackageProperties.cs
- EncodingStreamWrapper.cs
- HierarchicalDataBoundControl.cs
- StringArrayConverter.cs
- ADConnectionHelper.cs
- AlignmentYValidation.cs
- RootBuilder.cs
- DynamicScriptObject.cs
- TransformPattern.cs
- HtmlInputControl.cs
- ImportCatalogPart.cs
- DbConnectionStringBuilder.cs
- MediaContextNotificationWindow.cs
- ProgressChangedEventArgs.cs
- DataGridViewCellCancelEventArgs.cs
- SqlAggregateChecker.cs
- WindowsFormsSynchronizationContext.cs
- SafeHandles.cs
- SrgsRuleRef.cs
- PerformanceCounterPermission.cs
- XamlReaderHelper.cs
- NativeMethods.cs
- IdlingCommunicationPool.cs
- RoleServiceManager.cs
- SpeakCompletedEventArgs.cs
- RowBinding.cs
- Helpers.cs
- MultipartIdentifier.cs
- CacheManager.cs
- ImageInfo.cs
- SplineKeyFrames.cs
- MessageQueuePermissionEntryCollection.cs
- StrokeCollectionDefaultValueFactory.cs
- TextEditorThreadLocalStore.cs
- Html32TextWriter.cs
- SmiTypedGetterSetter.cs
- XsdBuildProvider.cs
- _ListenerAsyncResult.cs
- DbProviderManifest.cs
- PersonalizationEntry.cs
- ConfigXmlElement.cs
- XmlValidatingReader.cs
- BitHelper.cs
- TemplateControlBuildProvider.cs
- Grammar.cs
- ImageField.cs
- TextBoxBaseDesigner.cs
- CounterSampleCalculator.cs
- SmiEventSink_DeferedProcessing.cs
- ToggleButtonAutomationPeer.cs
- SudsWriter.cs
- LinqDataSourceHelper.cs
- BooleanKeyFrameCollection.cs
- AdornerHitTestResult.cs
- XmlnsDefinitionAttribute.cs
- SessionIDManager.cs
- ValidatorCompatibilityHelper.cs
- SecurityManager.cs
- ImageMap.cs
- Avt.cs
- SocketAddress.cs
- CharacterBuffer.cs
- InvokeBase.cs
- LineBreakRecord.cs
- CheckableControlBaseAdapter.cs
- SQLByteStorage.cs
- newitemfactory.cs
- FrugalList.cs
- ComponentGlyph.cs
- FileDialogCustomPlace.cs
- UnsafeNativeMethods.cs
- ActivationServices.cs
- OdbcConnectionOpen.cs
- Soap12ProtocolImporter.cs
- DispatcherEventArgs.cs
- BrowsableAttribute.cs
- SessionEndedEventArgs.cs
- Currency.cs
- SqlServer2KCompatibilityAnnotation.cs
- EventPropertyMap.cs
- MobileUserControlDesigner.cs
- _CookieModule.cs
- NativeMethods.cs
- ActivityExecutionContextCollection.cs
- CodeTypeOfExpression.cs
- DeploymentSectionCache.cs
- x509utils.cs
- IndexerNameAttribute.cs
- DbSourceCommand.cs
- SiteMapPathDesigner.cs
- OleDbDataAdapter.cs
- PageAdapter.cs
- DbConnectionInternal.cs
- MetaChildrenColumn.cs
- ControlValuePropertyAttribute.cs
- XPathLexer.cs