Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Xml / System / Xml / Dom / XmlComment.cs / 1 / 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
- RootBrowserWindowAutomationPeer.cs
- RIPEMD160Managed.cs
- DataTableClearEvent.cs
- EventArgs.cs
- WindowsStatic.cs
- ListViewCommandEventArgs.cs
- RegistrySecurity.cs
- shaperfactoryquerycachekey.cs
- HtmlTextArea.cs
- UriExt.cs
- MenuEventArgs.cs
- BufferedOutputStream.cs
- SettingsBase.cs
- MessageQueueTransaction.cs
- DefaultPrintController.cs
- keycontainerpermission.cs
- CustomAttribute.cs
- CheckBox.cs
- PolyBezierSegment.cs
- AccessDataSource.cs
- BufferedReadStream.cs
- CacheModeConverter.cs
- ThaiBuddhistCalendar.cs
- DesignerProperties.cs
- ToolStripItemRenderEventArgs.cs
- HttpDateParse.cs
- DataBoundControl.cs
- LogLogRecord.cs
- NavigationService.cs
- RectangleHotSpot.cs
- XPathSelectionIterator.cs
- Variant.cs
- OletxCommittableTransaction.cs
- SynchronizedMessageSource.cs
- TrackingMemoryStreamFactory.cs
- DataSourceUtil.cs
- HttpSocketManager.cs
- ApplicationDirectoryMembershipCondition.cs
- DictionaryBase.cs
- HyperlinkAutomationPeer.cs
- EventBookmark.cs
- OperatingSystem.cs
- StateDesignerConnector.cs
- IWorkflowDebuggerService.cs
- ItemContainerGenerator.cs
- DataTableReaderListener.cs
- InputBuffer.cs
- DataSourceHelper.cs
- mactripleDES.cs
- PropertyFilterAttribute.cs
- DocumentsTrace.cs
- XmlSchemaDocumentation.cs
- FigureParagraph.cs
- SessionPageStatePersister.cs
- UnmanagedBitmapWrapper.cs
- DataBindingCollection.cs
- GetCryptoTransformRequest.cs
- DragEventArgs.cs
- ItemCollectionEditor.cs
- ConfigurationValidatorAttribute.cs
- ActivityCodeDomReferenceService.cs
- WorkflowTraceTransfer.cs
- StyleXamlTreeBuilder.cs
- SendParametersContent.cs
- IncrementalReadDecoders.cs
- InertiaTranslationBehavior.cs
- ColumnBinding.cs
- DataBindingList.cs
- InputLanguageManager.cs
- smtpconnection.cs
- UrlMappingsSection.cs
- GridViewDeletedEventArgs.cs
- ObjectPersistData.cs
- HtmlGenericControl.cs
- CommandHelpers.cs
- RequestQueryProcessor.cs
- ToolStripButton.cs
- MenuItemCollection.cs
- PersonalizableAttribute.cs
- WebPartsPersonalizationAuthorization.cs
- isolationinterop.cs
- CharacterString.cs
- XmlAnyAttributeAttribute.cs
- OrderToken.cs
- MetaForeignKeyColumn.cs
- XMLSchema.cs
- RegistryExceptionHelper.cs
- ElementNotEnabledException.cs
- SqlDataSourceFilteringEventArgs.cs
- RegexMatchCollection.cs
- Compiler.cs
- ProviderMetadataCachedInformation.cs
- BatchParser.cs
- BaseCollection.cs
- CheckoutException.cs
- ClientCredentialsSecurityTokenManager.cs
- XmlNodeWriter.cs
- AssociatedControlConverter.cs
- wgx_commands.cs
- StringExpressionSet.cs