Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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; ////// /// public class XmlSchemaSimpleType : XmlSchemaType { XmlSchemaSimpleTypeContent content; ///[To be supplied.] ////// /// public XmlSchemaSimpleType() { Debug.Assert(SchemaContentType == XmlSchemaContentType.TextOnly); } ///[To be supplied.] ///[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; ////// /// public class XmlSchemaSimpleType : XmlSchemaType { XmlSchemaSimpleTypeContent content; ///[To be supplied.] ////// /// public XmlSchemaSimpleType() { Debug.Assert(SchemaContentType == XmlSchemaContentType.TextOnly); } ///[To be supplied.] ///[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
- AppDomainProtocolHandler.cs
- WebConfigurationHost.cs
- AsynchronousChannelMergeEnumerator.cs
- CultureSpecificStringDictionary.cs
- infer.cs
- DecimalAverageAggregationOperator.cs
- RawStylusInputCustomData.cs
- PublishLicense.cs
- BuildDependencySet.cs
- SimpleType.cs
- BaseResourcesBuildProvider.cs
- ItemDragEvent.cs
- ResponseStream.cs
- MSG.cs
- BasicViewGenerator.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- ConfigXmlReader.cs
- RepeatEnumerable.cs
- ImageFormatConverter.cs
- WebPartConnectionsCancelVerb.cs
- ExpressionBindings.cs
- HttpWebRequest.cs
- XmlSchemaAnnotated.cs
- CreateUserWizardStep.cs
- MulticastIPAddressInformationCollection.cs
- COM2ExtendedUITypeEditor.cs
- DragSelectionMessageFilter.cs
- Vector3D.cs
- InputScope.cs
- RectConverter.cs
- ExpressionBindingCollection.cs
- DocumentPageView.cs
- ConfigXmlWhitespace.cs
- FixedNode.cs
- XamlToRtfParser.cs
- DataControlReference.cs
- BlurBitmapEffect.cs
- HyperLinkStyle.cs
- Comparer.cs
- MembershipUser.cs
- BamlLocalizationDictionary.cs
- AggregatePushdown.cs
- Style.cs
- CellTreeNode.cs
- GridItemPatternIdentifiers.cs
- CacheMemory.cs
- FilterEventArgs.cs
- ButtonField.cs
- SqlException.cs
- FileLoadException.cs
- MessagePropertyFilter.cs
- ObjectConverter.cs
- columnmapkeybuilder.cs
- ParameterModifier.cs
- SiteMapSection.cs
- CodeTypeReferenceExpression.cs
- MenuStrip.cs
- SqlAliasesReferenced.cs
- TextDecorationLocationValidation.cs
- ModifierKeysValueSerializer.cs
- ServiceModelConfigurationSectionGroup.cs
- XmlCharCheckingWriter.cs
- NamespaceMapping.cs
- StringStorage.cs
- RawAppCommandInputReport.cs
- TdsParserHelperClasses.cs
- WebPartVerbsEventArgs.cs
- DtdParser.cs
- ObsoleteAttribute.cs
- TypeUtil.cs
- ByteKeyFrameCollection.cs
- hwndwrapper.cs
- DSACryptoServiceProvider.cs
- WebBaseEventKeyComparer.cs
- Trigger.cs
- Stroke2.cs
- SettingsPropertyValue.cs
- DecoderBestFitFallback.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- Pair.cs
- DataGridViewCellValueEventArgs.cs
- ExpressionBuilder.cs
- ProtectedConfiguration.cs
- SqlDataSourceView.cs
- RuleSetCollection.cs
- TaskFormBase.cs
- AssociationEndMember.cs
- WebBrowserEvent.cs
- MSHTMLHost.cs
- BooleanFunctions.cs
- ContextMenu.cs
- SqlInfoMessageEvent.cs
- InvalidAsynchronousStateException.cs
- SimpleFileLog.cs
- LinkLabel.cs
- InvalidCastException.cs
- Size.cs
- WindowsStartMenu.cs
- PropertyCollection.cs
- TriggerAction.cs