Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Dom / XmlComment.cs / 1305376 / XmlComment.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml { using System.Xml.XPath; using System.Diagnostics; // Represents the content of an XML comment. public class XmlComment: XmlCharacterData { protected internal XmlComment( string comment, XmlDocument doc ): base( comment, doc ) { } // Gets the name of the node. public override String Name { get { return OwnerDocument.strCommentName;} } // Gets the name of the current node without the namespace prefix. public override String LocalName { get { return OwnerDocument.strCommentName;} } // Gets the type of the current node. public override XmlNodeType NodeType { get { return XmlNodeType.Comment;} } // Creates a duplicate of this node. public override XmlNode CloneNode(bool deep) { Debug.Assert( OwnerDocument != null ); return OwnerDocument.CreateComment( Data ); } // Saves the node to the specified XmlWriter. public override void WriteTo(XmlWriter w) { w.WriteComment( Data ); } // Saves all the children of the node to the specified XmlWriter. public override void WriteContentTo(XmlWriter w) { // Intentionally do nothing } internal override XPathNodeType XPNodeType { get { return XPathNodeType.Comment; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml { using System.Xml.XPath; using System.Diagnostics; // Represents the content of an XML comment. public class XmlComment: XmlCharacterData { protected internal XmlComment( string comment, XmlDocument doc ): base( comment, doc ) { } // Gets the name of the node. public override String Name { get { return OwnerDocument.strCommentName;} } // Gets the name of the current node without the namespace prefix. public override String LocalName { get { return OwnerDocument.strCommentName;} } // Gets the type of the current node. public override XmlNodeType NodeType { get { return XmlNodeType.Comment;} } // Creates a duplicate of this node. public override XmlNode CloneNode(bool deep) { Debug.Assert( OwnerDocument != null ); return OwnerDocument.CreateComment( Data ); } // Saves the node to the specified XmlWriter. public override void WriteTo(XmlWriter w) { w.WriteComment( Data ); } // Saves all the children of the node to the specified XmlWriter. public override void WriteContentTo(XmlWriter w) { // Intentionally do nothing } internal override XPathNodeType XPNodeType { get { return XPathNodeType.Comment; } } } } // 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
- ItemTypeToolStripMenuItem.cs
- Crypto.cs
- EndpointDiscoveryMetadata.cs
- FilterEventArgs.cs
- RuntimeArgumentHandle.cs
- ResourcesBuildProvider.cs
- DoubleUtil.cs
- DbConnectionPoolGroupProviderInfo.cs
- SqlInfoMessageEvent.cs
- odbcmetadatacolumnnames.cs
- PrinterUnitConvert.cs
- SafeNativeMethods.cs
- XmlDataImplementation.cs
- CheckBoxFlatAdapter.cs
- RawStylusInputReport.cs
- Accessible.cs
- ReflectTypeDescriptionProvider.cs
- DataServiceConfiguration.cs
- Compilation.cs
- RegularExpressionValidator.cs
- ContextDataSource.cs
- ValidatingReaderNodeData.cs
- XPathEmptyIterator.cs
- CodeThrowExceptionStatement.cs
- DateTimeConverter.cs
- SafeCryptoHandles.cs
- OdbcFactory.cs
- TextSelectionHelper.cs
- FileReservationCollection.cs
- SqlConnectionString.cs
- SchemaNamespaceManager.cs
- CqlParser.cs
- VisualState.cs
- ContextDataSourceContextData.cs
- ListControl.cs
- DesignBindingPicker.cs
- PingOptions.cs
- FeatureSupport.cs
- ObjectSet.cs
- DataViewSettingCollection.cs
- InternalRelationshipCollection.cs
- FormsIdentity.cs
- SqlDataSourceQueryConverter.cs
- FigureParaClient.cs
- SmiContextFactory.cs
- ToolStripDesignerAvailabilityAttribute.cs
- ColorAnimationUsingKeyFrames.cs
- SiteMapSection.cs
- MimeTypePropertyAttribute.cs
- InputBuffer.cs
- ImageConverter.cs
- BamlResourceContent.cs
- TextTreeText.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ReaderWriterLock.cs
- HttpCacheVary.cs
- BufferedGraphics.cs
- EventMappingSettingsCollection.cs
- SqlError.cs
- PeerObject.cs
- ColorIndependentAnimationStorage.cs
- ServerReliableChannelBinder.cs
- BufferedWebEventProvider.cs
- FixedPage.cs
- RenderOptions.cs
- FrameworkElement.cs
- X509RecipientCertificateClientElement.cs
- QueryLifecycle.cs
- SrgsItemList.cs
- TogglePattern.cs
- odbcmetadatacolumnnames.cs
- UpdateProgress.cs
- MaterialGroup.cs
- PieceDirectory.cs
- CngKey.cs
- Int16Storage.cs
- WsdlImporterElement.cs
- SqlTriggerContext.cs
- ReadOnlyDataSource.cs
- DomainUpDown.cs
- FocusChangedEventArgs.cs
- PromptBuilder.cs
- AsyncResult.cs
- TypeResolver.cs
- HttpChannelListener.cs
- SHA1Managed.cs
- UidPropertyAttribute.cs
- Canvas.cs
- ScriptRef.cs
- ListBoxItemAutomationPeer.cs
- TextTrailingWordEllipsis.cs
- XmlCharType.cs
- CommandBindingCollection.cs
- ImportCatalogPart.cs
- CommandHelpers.cs
- BasicViewGenerator.cs
- WorkerRequest.cs
- UnsafeNativeMethods.cs
- PolicyUtility.cs
- ToolStripItemImageRenderEventArgs.cs