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
- EventLog.cs
- FixedBufferAttribute.cs
- DescendantOverDescendantQuery.cs
- XmlSchemaAppInfo.cs
- SqlCommandSet.cs
- StateMachineWorkflow.cs
- PackageProperties.cs
- StylusEventArgs.cs
- SelectorAutomationPeer.cs
- FlowLayoutSettings.cs
- ListViewItem.cs
- HtmlTitle.cs
- TreeNode.cs
- coordinator.cs
- WebServiceReceive.cs
- VisualTransition.cs
- ApplicationInfo.cs
- ClientApiGenerator.cs
- DataRowExtensions.cs
- SrgsGrammarCompiler.cs
- SqlBuffer.cs
- LookupBindingPropertiesAttribute.cs
- _emptywebproxy.cs
- ControlTemplate.cs
- ButtonStandardAdapter.cs
- ClientViaElement.cs
- ExpandSegment.cs
- BrowserCapabilitiesCompiler.cs
- DelegatingConfigHost.cs
- CompiledXpathExpr.cs
- StrongNameMembershipCondition.cs
- WebConfigurationFileMap.cs
- WindowsScrollBarBits.cs
- ArgumentsParser.cs
- CompositeTypefaceMetrics.cs
- UITypeEditors.cs
- CultureTableRecord.cs
- CleanUpVirtualizedItemEventArgs.cs
- SqlNode.cs
- EdmItemError.cs
- X509Certificate2Collection.cs
- SystemMulticastIPAddressInformation.cs
- DesignerTextWriter.cs
- HttpPostedFileBase.cs
- EntityProxyTypeInfo.cs
- EncryptedType.cs
- DrawToolTipEventArgs.cs
- XPathCompileException.cs
- CodeCastExpression.cs
- mansign.cs
- RequestResizeEvent.cs
- DefaultSection.cs
- RecognizeCompletedEventArgs.cs
- _Semaphore.cs
- DbConnectionStringCommon.cs
- ReservationCollection.cs
- AssociationProvider.cs
- ProtocolReflector.cs
- CompilerWrapper.cs
- COMException.cs
- SelectionRangeConverter.cs
- HwndSourceKeyboardInputSite.cs
- XamlPointCollectionSerializer.cs
- BinaryObjectWriter.cs
- ParentUndoUnit.cs
- BuildProviderAppliesToAttribute.cs
- TagNameToTypeMapper.cs
- SqlClientFactory.cs
- GestureRecognizer.cs
- ProxyWebPart.cs
- NamespaceQuery.cs
- SqlCacheDependencySection.cs
- ToolboxComponentsCreatingEventArgs.cs
- AsymmetricCryptoHandle.cs
- AutomationPropertyInfo.cs
- TreeViewImageGenerator.cs
- SqlDataSourceQueryConverter.cs
- DataServiceRequest.cs
- DispatchChannelSink.cs
- BuiltInExpr.cs
- UndoEngine.cs
- _NetRes.cs
- ADConnectionHelper.cs
- DefaultValueConverter.cs
- ProtocolProfile.cs
- MethodImplAttribute.cs
- AuthenticationConfig.cs
- MailHeaderInfo.cs
- TypeDescriptorFilterService.cs
- ResXResourceReader.cs
- RelationshipConstraintValidator.cs
- RequestQueryProcessor.cs
- InvalidBodyAccessException.cs
- DataGridViewCellPaintingEventArgs.cs
- ArrangedElement.cs
- EncryptedXml.cs
- ExplicitDiscriminatorMap.cs
- Events.cs
- GeometryGroup.cs
- SmtpReplyReader.cs