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
- RSAOAEPKeyExchangeFormatter.cs
- OperationResponse.cs
- Int64AnimationBase.cs
- ReadOnlyDataSource.cs
- ActiveXContainer.cs
- WarningException.cs
- TaiwanLunisolarCalendar.cs
- DefaultTextStore.cs
- Image.cs
- PrintController.cs
- PostBackTrigger.cs
- EnumUnknown.cs
- EditableTreeList.cs
- AppDomain.cs
- ParallelTimeline.cs
- Serializer.cs
- CustomValidator.cs
- MsdtcClusterUtils.cs
- DataGridViewTopLeftHeaderCell.cs
- Int16Converter.cs
- TextBox.cs
- CheckBoxStandardAdapter.cs
- WaitForChangedResult.cs
- XmlNotation.cs
- GenericsInstances.cs
- ThreadLocal.cs
- ControlBuilder.cs
- ViewSimplifier.cs
- RawStylusInputCustomDataList.cs
- OleDbStruct.cs
- HyperLink.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- TypeConverterHelper.cs
- PasswordDeriveBytes.cs
- CommandTreeTypeHelper.cs
- XamlToRtfWriter.cs
- StorageEntityContainerMapping.cs
- InputMethodStateChangeEventArgs.cs
- odbcmetadatacolumnnames.cs
- TypeConverterHelper.cs
- SqlParameterCollection.cs
- cache.cs
- BuildManager.cs
- DataSourceHelper.cs
- CompositeActivityDesigner.cs
- CodeMemberMethod.cs
- RelationshipConstraintValidator.cs
- StringStorage.cs
- CodeObject.cs
- ValidatorCollection.cs
- ProfileParameter.cs
- TextEvent.cs
- RichTextBox.cs
- GlyphRun.cs
- LogReservationCollection.cs
- CharConverter.cs
- ClientEventManager.cs
- PrintDialog.cs
- RightsManagementEncryptionTransform.cs
- UDPClient.cs
- TreeViewEvent.cs
- ConfigurationSettings.cs
- HttpGetClientProtocol.cs
- DispatcherEventArgs.cs
- ConfigurationPermission.cs
- printdlgexmarshaler.cs
- VisualBrush.cs
- StateMachineDesignerPaint.cs
- ResXDataNode.cs
- XmlILAnnotation.cs
- DbConnectionStringCommon.cs
- FastPropertyAccessor.cs
- ExpressionWriter.cs
- WebServicesDescriptionAttribute.cs
- ErrorHandler.cs
- CompilationUnit.cs
- DragEventArgs.cs
- EventArgs.cs
- PersonalizationState.cs
- AsyncResult.cs
- MultipartContentParser.cs
- ReservationCollection.cs
- TextWriter.cs
- MonikerHelper.cs
- SiteMapHierarchicalDataSourceView.cs
- ObjectRef.cs
- Tuple.cs
- ReaderWriterLockWrapper.cs
- TableCellCollection.cs
- TypeSystemProvider.cs
- LoadedOrUnloadedOperation.cs
- FileUtil.cs
- FrameAutomationPeer.cs
- _CookieModule.cs
- GroupItem.cs
- TemplatePropertyEntry.cs
- SQLInt32Storage.cs
- XmlDownloadManager.cs
- RootBrowserWindow.cs
- ControlPropertyNameConverter.cs