Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaSimpleType.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ReplacementText.cs
- RayMeshGeometry3DHitTestResult.cs
- RequestTimeoutManager.cs
- AssemblyAttributesGoHere.cs
- ToolStripControlHost.cs
- CssTextWriter.cs
- WindowsListViewGroupHelper.cs
- CommittableTransaction.cs
- RuntimeIdentifierPropertyAttribute.cs
- SqlNotificationEventArgs.cs
- TemplateControlParser.cs
- UiaCoreTypesApi.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- DrawingBrush.cs
- SourceItem.cs
- CodeNamespaceImport.cs
- ObjectItemLoadingSessionData.cs
- CompoundFileStorageReference.cs
- Grammar.cs
- HMAC.cs
- CachedBitmap.cs
- ModulesEntry.cs
- Normalization.cs
- StringSorter.cs
- PenCursorManager.cs
- BypassElement.cs
- DataReceivedEventArgs.cs
- SignedXml.cs
- Padding.cs
- TextElementCollectionHelper.cs
- FaultReason.cs
- DeadLetterQueue.cs
- WpfGeneratedKnownTypes.cs
- streamingZipPartStream.cs
- PartitionedStream.cs
- RemoveStoryboard.cs
- CacheVirtualItemsEvent.cs
- WebControl.cs
- HandlerWithFactory.cs
- DictionaryContent.cs
- UrlPropertyAttribute.cs
- HttpRuntime.cs
- GridViewSortEventArgs.cs
- Scene3D.cs
- mda.cs
- FormViewInsertEventArgs.cs
- MediaPlayerState.cs
- ResXFileRef.cs
- SQlBooleanStorage.cs
- DiscoveryExceptionDictionary.cs
- TaskForm.cs
- SetStateDesigner.cs
- IconConverter.cs
- ChainedAsyncResult.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- XmlLanguage.cs
- DataGridViewTextBoxColumn.cs
- RemotingSurrogateSelector.cs
- FakeModelPropertyImpl.cs
- ImageMapEventArgs.cs
- AudioSignalProblemOccurredEventArgs.cs
- XmlNullResolver.cs
- CurrentChangingEventManager.cs
- EmptyControlCollection.cs
- HashMembershipCondition.cs
- TraceSection.cs
- CapiNative.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ApplicationProxyInternal.cs
- RadialGradientBrush.cs
- ScriptControlDescriptor.cs
- ConfigurationLocationCollection.cs
- QueryHandler.cs
- AttachedPropertiesService.cs
- CodeMemberProperty.cs
- ContainerTracking.cs
- DataKeyArray.cs
- ProjectionPathSegment.cs
- ArrayWithOffset.cs
- FieldNameLookup.cs
- SafeWaitHandle.cs
- EncodingTable.cs
- Menu.cs
- TextReturnReader.cs
- XMLDiffLoader.cs
- AlphaSortedEnumConverter.cs
- ByteConverter.cs
- LocalizableResourceBuilder.cs
- SurrogateEncoder.cs
- StreamAsIStream.cs
- PropertyReferenceSerializer.cs
- DocumentGrid.cs
- RadioButtonList.cs
- RawStylusActions.cs
- GroupLabel.cs
- ValueQuery.cs
- FullTextLine.cs
- Environment.cs
- TreeNodeMouseHoverEvent.cs
- Style.cs