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
- Queue.cs
- SafePointer.cs
- PrintPageEvent.cs
- BatchServiceHost.cs
- WebPartManagerDesigner.cs
- HttpHandler.cs
- RegexStringValidatorAttribute.cs
- KeyToListMap.cs
- SafeHGlobalHandleCritical.cs
- HuffmanTree.cs
- CodeConditionStatement.cs
- PropertyValueChangedEvent.cs
- ThrowOnMultipleAssignment.cs
- Models.cs
- SqlDataSourceCommandEventArgs.cs
- TransformedBitmap.cs
- xsdvalidator.cs
- UiaCoreProviderApi.cs
- BitmapEffectDrawingContextWalker.cs
- SoapSchemaImporter.cs
- AlphabetConverter.cs
- ExternalException.cs
- ClientBuildManagerCallback.cs
- OracleRowUpdatingEventArgs.cs
- EventMappingSettingsCollection.cs
- EncodingDataItem.cs
- Keyboard.cs
- IISUnsafeMethods.cs
- EdmComplexTypeAttribute.cs
- PenContext.cs
- MethodExpression.cs
- ExpressionNode.cs
- GeometryGroup.cs
- WarningException.cs
- FloatAverageAggregationOperator.cs
- Soap.cs
- PeerNeighborManager.cs
- SqlInternalConnectionTds.cs
- FormsAuthenticationUserCollection.cs
- ColumnReorderedEventArgs.cs
- BulletedList.cs
- TraceContextRecord.cs
- CodeAttachEventStatement.cs
- HtmlListAdapter.cs
- SqlGatherConsumedAliases.cs
- SiteMapNodeItem.cs
- NumericExpr.cs
- ObjectConverter.cs
- VisualBasicDesignerHelper.cs
- DataGridRowClipboardEventArgs.cs
- PolicyImporterElementCollection.cs
- BufferedResponseStream.cs
- CodeBinaryOperatorExpression.cs
- UnmanagedHandle.cs
- ScriptReference.cs
- FlowDocumentReaderAutomationPeer.cs
- TreeWalker.cs
- Size3DValueSerializer.cs
- CompilerParameters.cs
- MappingModelBuildProvider.cs
- ColorBlend.cs
- EditorZone.cs
- GenericWebPart.cs
- CqlQuery.cs
- XmlUnspecifiedAttribute.cs
- SystemThemeKey.cs
- SQLConvert.cs
- SettingsPropertyValueCollection.cs
- ElementProxy.cs
- ControlBindingsCollection.cs
- ObservableCollection.cs
- VersionedStream.cs
- DrawingCollection.cs
- WebServiceReceive.cs
- RawAppCommandInputReport.cs
- KeyValuePairs.cs
- ExpressionBinding.cs
- TypeElement.cs
- UnsafeNativeMethods.cs
- FamilyTypeface.cs
- CancellationToken.cs
- Renderer.cs
- WebPartZoneBase.cs
- OneToOneMappingSerializer.cs
- sqlstateclientmanager.cs
- isolationinterop.cs
- RequestContext.cs
- dataobject.cs
- WebPartUserCapability.cs
- TdsParserHelperClasses.cs
- StoryFragments.cs
- Manipulation.cs
- KeyValueConfigurationCollection.cs
- DeclarativeExpressionConditionDeclaration.cs
- XmlArrayItemAttribute.cs
- MergablePropertyAttribute.cs
- WpfXamlType.cs
- NativeMethods.cs
- ToolstripProfessionalRenderer.cs
- InvokeCompletedEventArgs.cs