Code:
/ 4.0 / 4.0 / 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.
//------------------------------------------------------------------------------
//
// 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
- Hex.cs
- VerticalAlignConverter.cs
- LongTypeConverter.cs
- BatchParser.cs
- StylusCaptureWithinProperty.cs
- ConnectionsZone.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- BitmapEffectRenderDataResource.cs
- ToggleProviderWrapper.cs
- SymmetricCryptoHandle.cs
- AuthenticationManager.cs
- CFGGrammar.cs
- ISFClipboardData.cs
- QilVisitor.cs
- WebPartManager.cs
- FixedDocument.cs
- RoleManagerSection.cs
- DbFunctionCommandTree.cs
- WebServiceHandlerFactory.cs
- ApplicationCommands.cs
- ConfigsHelper.cs
- HTTPNotFoundHandler.cs
- BindableAttribute.cs
- PropertyPathConverter.cs
- WebColorConverter.cs
- DetailsView.cs
- AutomationProperties.cs
- MemoryRecordBuffer.cs
- PassportIdentity.cs
- PropertyPathConverter.cs
- HexParser.cs
- ProxyAttribute.cs
- HwndMouseInputProvider.cs
- MachineSettingsSection.cs
- XmlSerializableWriter.cs
- ResourceProperty.cs
- HTTPNotFoundHandler.cs
- ScriptDescriptor.cs
- TrackingMemoryStream.cs
- SoundPlayerAction.cs
- SevenBitStream.cs
- WebServiceHandler.cs
- codemethodreferenceexpression.cs
- CodeEntryPointMethod.cs
- XmlUtil.cs
- TimerTable.cs
- SqlDataSourceQueryEditorForm.cs
- HandleCollector.cs
- Deflater.cs
- MarkupWriter.cs
- HandlerMappingMemo.cs
- hwndwrapper.cs
- WindowsSecurityTokenAuthenticator.cs
- RoleGroupCollection.cs
- XamlToRtfWriter.cs
- SmiGettersStream.cs
- TextEditor.cs
- IriParsingElement.cs
- RayMeshGeometry3DHitTestResult.cs
- ReaderContextStackData.cs
- SubclassTypeValidator.cs
- DynamicResourceExtensionConverter.cs
- RelationshipType.cs
- SecurityMode.cs
- FileFormatException.cs
- Cursors.cs
- Internal.cs
- SqlDataSource.cs
- DiscriminatorMap.cs
- FullTextLine.cs
- SrgsRulesCollection.cs
- CellNormalizer.cs
- SqlAliasesReferenced.cs
- CipherData.cs
- AsyncInvokeContext.cs
- ResolveNextArgumentWorkItem.cs
- WebPartTransformerAttribute.cs
- WrapPanel.cs
- MaskDescriptors.cs
- ThreadAttributes.cs
- CreateUserWizardStep.cs
- _SafeNetHandles.cs
- ViewBase.cs
- KnownTypeDataContractResolver.cs
- Stackframe.cs
- ObjectDataSourceView.cs
- OleAutBinder.cs
- HtmlGenericControl.cs
- FontSizeConverter.cs
- CqlLexer.cs
- MergeFilterQuery.cs
- VisualTransition.cs
- Ipv6Element.cs
- ACL.cs
- MobileControlDesigner.cs
- DesignerDataConnection.cs
- BufferAllocator.cs
- ScrollContentPresenter.cs
- TextCollapsingProperties.cs
- XmlWrappingWriter.cs