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
- TabletDevice.cs
- SizeAnimationUsingKeyFrames.cs
- SerializationSectionGroup.cs
- AsynchronousChannel.cs
- SafePipeHandle.cs
- GradientStopCollection.cs
- TraceContextEventArgs.cs
- ThicknessAnimationUsingKeyFrames.cs
- HitTestDrawingContextWalker.cs
- Codec.cs
- HttpApplicationStateWrapper.cs
- SpeechAudioFormatInfo.cs
- Guid.cs
- TreeNodeBindingCollection.cs
- WbemProvider.cs
- DataGrid.cs
- ElementNotAvailableException.cs
- ReadOnlyDataSource.cs
- XmlLanguageConverter.cs
- sortedlist.cs
- ProcessInfo.cs
- errorpatternmatcher.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- remotingproxy.cs
- DataGridRow.cs
- SaveWorkflowAsyncResult.cs
- OracleColumn.cs
- Translator.cs
- RelationshipEnd.cs
- PatternMatcher.cs
- Stackframe.cs
- ExpressionBuilder.cs
- DecimalAnimationBase.cs
- FileDataSourceCache.cs
- AttachedPropertyMethodSelector.cs
- shaperfactoryquerycacheentry.cs
- HttpConfigurationContext.cs
- FilteredDataSetHelper.cs
- ProcessThread.cs
- UnsafePeerToPeerMethods.cs
- rsa.cs
- RenamedEventArgs.cs
- InternalControlCollection.cs
- ErrorLog.cs
- ButtonFieldBase.cs
- TTSEvent.cs
- Graphics.cs
- XmlFormatExtensionPointAttribute.cs
- IsolatedStorageFileStream.cs
- HttpResponse.cs
- DeflateStream.cs
- QualifierSet.cs
- SmtpMail.cs
- SubstitutionDesigner.cs
- SingleKeyFrameCollection.cs
- KeySpline.cs
- SqlServices.cs
- SQLRoleProvider.cs
- ProfileInfo.cs
- ConnectionManager.cs
- HyperLinkField.cs
- FileClassifier.cs
- OutputCacheModule.cs
- EncoderNLS.cs
- AutomationAttributeInfo.cs
- CachedFontFace.cs
- SamlAuthorityBinding.cs
- CustomLineCap.cs
- StylusPlugin.cs
- ValidationError.cs
- TextSelectionHighlightLayer.cs
- TypeBuilderInstantiation.cs
- ClockGroup.cs
- InputEventArgs.cs
- ConfigurationSectionCollection.cs
- XslAstAnalyzer.cs
- ProviderMetadata.cs
- RequiredFieldValidator.cs
- TypeBuilder.cs
- SerializerWriterEventHandlers.cs
- AuthorizationRuleCollection.cs
- TextControlDesigner.cs
- MouseWheelEventArgs.cs
- PaperSize.cs
- Permission.cs
- FrameworkTemplate.cs
- RestHandlerFactory.cs
- _emptywebproxy.cs
- SqlCrossApplyToCrossJoin.cs
- Vector3DIndependentAnimationStorage.cs
- DataObjectPastingEventArgs.cs
- ThicknessAnimationBase.cs
- CorePropertiesFilter.cs
- Line.cs
- FormViewUpdateEventArgs.cs
- ContractUtils.cs
- Label.cs
- TimeoutException.cs
- ComponentDispatcher.cs
- FileStream.cs