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; ////// /// 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
- ViewEventArgs.cs
- GeometryHitTestResult.cs
- PropertyRef.cs
- DocumentGridPage.cs
- HttpClientProtocol.cs
- DbParameterCollectionHelper.cs
- RenderOptions.cs
- DateTimeConverter2.cs
- SerializationTrace.cs
- ReverseQueryOperator.cs
- VirtualPath.cs
- Size.cs
- FontTypeConverter.cs
- NetworkInformationException.cs
- PersonalizableAttribute.cs
- SelectorItemAutomationPeer.cs
- ListManagerBindingsCollection.cs
- StaticExtension.cs
- MaskedTextBox.cs
- InputScope.cs
- DataSourceView.cs
- ConfigsHelper.cs
- ServiceObjectContainer.cs
- TimeSpanConverter.cs
- Baml6ConstructorInfo.cs
- GridLengthConverter.cs
- UserValidatedEventArgs.cs
- ListViewContainer.cs
- RewritingPass.cs
- TextTrailingCharacterEllipsis.cs
- EncodingStreamWrapper.cs
- NetCodeGroup.cs
- FloatUtil.cs
- OracleFactory.cs
- HandlerBase.cs
- VersionedStreamOwner.cs
- InsufficientMemoryException.cs
- ReflectionTypeLoadException.cs
- XmlCustomFormatter.cs
- xmlformatgeneratorstatics.cs
- ToggleProviderWrapper.cs
- ConfigurationPropertyAttribute.cs
- TextRunProperties.cs
- LateBoundBitmapDecoder.cs
- Image.cs
- XmlILIndex.cs
- RawMouseInputReport.cs
- PersonalizationProviderCollection.cs
- PeerPresenceInfo.cs
- XmlMtomWriter.cs
- CheckBox.cs
- SqlWebEventProvider.cs
- VisualProxy.cs
- LineServicesCallbacks.cs
- AutoSizeComboBox.cs
- TemplateBindingExpression.cs
- ReferencedAssembly.cs
- ADMembershipProvider.cs
- HtmlSelectionListAdapter.cs
- DoubleLink.cs
- PreservationFileReader.cs
- HttpWebRequestElement.cs
- MonikerUtility.cs
- AutomationEventArgs.cs
- ImportContext.cs
- BlockExpression.cs
- WorkItem.cs
- HierarchicalDataSourceIDConverter.cs
- SapiInterop.cs
- SqlUserDefinedAggregateAttribute.cs
- DocumentXmlWriter.cs
- AddInPipelineAttributes.cs
- Misc.cs
- SmtpNegotiateAuthenticationModule.cs
- HttpHandlerActionCollection.cs
- HtmlTitle.cs
- EngineSite.cs
- ApplicationInfo.cs
- FileInfo.cs
- MissingManifestResourceException.cs
- _ProxyRegBlob.cs
- CompletedAsyncResult.cs
- InternalSafeNativeMethods.cs
- SQLDoubleStorage.cs
- LoadWorkflowByInstanceKeyCommand.cs
- SqlRowUpdatedEvent.cs
- ProvidePropertyAttribute.cs
- DictionaryContent.cs
- HttpFormatExtensions.cs
- EventToken.cs
- EntitySqlQueryCacheEntry.cs
- ZipIOExtraFieldPaddingElement.cs
- CommandID.cs
- TextViewBase.cs
- DnsEndpointIdentity.cs
- WebControlAdapter.cs
- BinaryReader.cs
- Run.cs
- Scheduler.cs
- Missing.cs