Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DebugInfoExpression.cs
- RegexWriter.cs
- ZeroOpNode.cs
- NativeRecognizer.cs
- Slider.cs
- VisualStyleInformation.cs
- WmpBitmapDecoder.cs
- Transactions.cs
- ExpressionLink.cs
- ContextInformation.cs
- XmlSchemaChoice.cs
- StreamGeometry.cs
- ExceptionAggregator.cs
- ConfigurationPropertyAttribute.cs
- InteropAutomationProvider.cs
- GridViewSortEventArgs.cs
- FirstMatchCodeGroup.cs
- Validator.cs
- BaseValidator.cs
- GridViewRowEventArgs.cs
- XmlSchemas.cs
- SchemaElement.cs
- StaticSiteMapProvider.cs
- AnnotationHighlightLayer.cs
- ObjectDataSourceDisposingEventArgs.cs
- ActivityStateQuery.cs
- RelatedCurrencyManager.cs
- WebPartZoneCollection.cs
- OrderByQueryOptionExpression.cs
- XmlEntityReference.cs
- InputScopeConverter.cs
- DesignerActionGlyph.cs
- BitArray.cs
- XmlSchemaGroup.cs
- DoubleConverter.cs
- Crc32.cs
- StringKeyFrameCollection.cs
- DataBinding.cs
- ComplusEndpointConfigContainer.cs
- StateWorkerRequest.cs
- SurrogateChar.cs
- GcHandle.cs
- ThicknessConverter.cs
- InvalidBodyAccessException.cs
- WindowsAuthenticationModule.cs
- SymmetricAlgorithm.cs
- MimeTypeAttribute.cs
- WinFormsUtils.cs
- WebBrowser.cs
- RewritingSimplifier.cs
- PropertyRecord.cs
- InternalConfigHost.cs
- ValidationErrorCollection.cs
- MarshalByValueComponent.cs
- WindowsGraphics2.cs
- OrCondition.cs
- UnknownWrapper.cs
- DefaultValueTypeConverter.cs
- ExtendedProperty.cs
- CurrentChangingEventManager.cs
- FacetValues.cs
- TransportConfigurationTypeElementCollection.cs
- GridViewAutomationPeer.cs
- FontStyles.cs
- WinFormsSecurity.cs
- XmlElementElementCollection.cs
- DataGridViewLinkColumn.cs
- EntityDataSourceDesigner.cs
- ParsedAttributeCollection.cs
- ToolBarButton.cs
- XmlNamespaceMappingCollection.cs
- MemberMaps.cs
- SafeHandle.cs
- UInt64Storage.cs
- SortedDictionary.cs
- BufferedResponseStream.cs
- HelpKeywordAttribute.cs
- _emptywebproxy.cs
- ListenerSessionConnection.cs
- EdmScalarPropertyAttribute.cs
- MLangCodePageEncoding.cs
- TimeSpanConverter.cs
- UnknownBitmapEncoder.cs
- DisableDpiAwarenessAttribute.cs
- PropertyPathConverter.cs
- UnSafeCharBuffer.cs
- DeflateStreamAsyncResult.cs
- LinkedDataMemberFieldEditor.cs
- Message.cs
- WebPartActionVerb.cs
- WebContext.cs
- VerificationAttribute.cs
- GrammarBuilderRuleRef.cs
- FormViewDeletedEventArgs.cs
- LiteralTextContainerControlBuilder.cs
- ChannelManagerHelpers.cs
- FormsAuthenticationConfiguration.cs
- SecuritySessionClientSettings.cs
- ToolStripPanelDesigner.cs
- CodeSpit.cs