Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HyperLinkField.cs
- FixedSOMLineRanges.cs
- ChannelCredentials.cs
- XmlUrlResolver.cs
- ImageButton.cs
- StateFinalizationDesigner.cs
- ServiceOperationUIEditor.cs
- LicenseManager.cs
- PrePrepareMethodAttribute.cs
- ByteStream.cs
- NetTcpBindingElement.cs
- ServerValidateEventArgs.cs
- documentsequencetextpointer.cs
- MediaScriptCommandRoutedEventArgs.cs
- DesignOnlyAttribute.cs
- ContainerParagraph.cs
- HttpCacheVary.cs
- WebReferencesBuildProvider.cs
- SoapSchemaMember.cs
- TraceLevelHelper.cs
- HttpResponse.cs
- FlowDocumentScrollViewer.cs
- TableLayoutCellPaintEventArgs.cs
- ConfigurationConverterBase.cs
- ConsoleTraceListener.cs
- DiscardableAttribute.cs
- TextBlock.cs
- TemplateColumn.cs
- TextParaLineResult.cs
- StreamGeometryContext.cs
- ItemList.cs
- Menu.cs
- XmlRootAttribute.cs
- MouseDevice.cs
- ColorDialog.cs
- OptimalTextSource.cs
- MemoryMappedFileSecurity.cs
- RijndaelManaged.cs
- PeerTransportSecuritySettings.cs
- DataGridViewBindingCompleteEventArgs.cs
- OleDbReferenceCollection.cs
- CqlQuery.cs
- EditableRegion.cs
- DbFunctionCommandTree.cs
- OracleParameterCollection.cs
- Models.cs
- SimpleType.cs
- xmlNames.cs
- XmlBufferReader.cs
- GridSplitter.cs
- ReversePositionQuery.cs
- HtmlGenericControl.cs
- DbConvert.cs
- TableProviderWrapper.cs
- ApplicationFileParser.cs
- Stackframe.cs
- Int32.cs
- PermissionListSet.cs
- PtsPage.cs
- ArraySegment.cs
- Compiler.cs
- PageCatalogPart.cs
- WeakHashtable.cs
- XmlNodeReader.cs
- MenuAutoFormat.cs
- ParallelDesigner.cs
- XmlTypeMapping.cs
- TypeUsageBuilder.cs
- COM2ColorConverter.cs
- QuadTree.cs
- DayRenderEvent.cs
- XsltFunctions.cs
- TreeNodeCollectionEditor.cs
- SqlRemoveConstantOrderBy.cs
- IntegerFacetDescriptionElement.cs
- FusionWrap.cs
- QueryReaderSettings.cs
- ConfigurationManagerInternalFactory.cs
- SizeChangedInfo.cs
- MembershipPasswordException.cs
- TextCharacters.cs
- CLRBindingWorker.cs
- ConfigXmlText.cs
- HostingEnvironmentSection.cs
- GridProviderWrapper.cs
- PackagingUtilities.cs
- DataListItemCollection.cs
- UInt32Storage.cs
- AsyncStreamReader.cs
- WebConvert.cs
- MetadataCache.cs
- DynamicDataManager.cs
- MetadataProperty.cs
- DotExpr.cs
- VerificationException.cs
- InternalConfigConfigurationFactory.cs
- CaseInsensitiveOrdinalStringComparer.cs
- FusionWrap.cs
- DbBuffer.cs
- EmptyEnumerable.cs