Code:
/ DotNET / DotNET / 8.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
- CTreeGenerator.cs
- XmlSecureResolver.cs
- ListSortDescription.cs
- OutKeywords.cs
- DbUpdateCommandTree.cs
- StrokeFIndices.cs
- UnSafeCharBuffer.cs
- LocalizabilityAttribute.cs
- MethodBody.cs
- InvalidAsynchronousStateException.cs
- JsonServiceDocumentSerializer.cs
- TypeElementCollection.cs
- DeferredElementTreeState.cs
- PointAnimation.cs
- SchemaSetCompiler.cs
- RawStylusInput.cs
- ToolTip.cs
- KnowledgeBase.cs
- AuthorizationRuleCollection.cs
- WebPartTransformerCollection.cs
- WindowsStatusBar.cs
- DataObject.cs
- ResourceManager.cs
- CodeChecksumPragma.cs
- TransformFinalBlockRequest.cs
- ProviderUtil.cs
- DataObjectFieldAttribute.cs
- BamlLocalizer.cs
- ScrollItemProviderWrapper.cs
- ImageFormatConverter.cs
- EntityDataSourceSelectingEventArgs.cs
- SourceElementsCollection.cs
- MultiPropertyDescriptorGridEntry.cs
- DataGridPagingPage.cs
- SBCSCodePageEncoding.cs
- XmlDocumentSerializer.cs
- XmlSchemaGroup.cs
- EdmProperty.cs
- DbConnectionPoolGroup.cs
- IMembershipProvider.cs
- WebPartExportVerb.cs
- _OverlappedAsyncResult.cs
- BasicHttpMessageSecurityElement.cs
- xmlfixedPageInfo.cs
- ImageMapEventArgs.cs
- ClientSettingsStore.cs
- ImageFormat.cs
- FamilyTypefaceCollection.cs
- DrawingContextDrawingContextWalker.cs
- MdImport.cs
- CodeDOMUtility.cs
- UpDownBase.cs
- DataGridParentRows.cs
- BindableAttribute.cs
- Label.cs
- EditCommandColumn.cs
- DataSourceCacheDurationConverter.cs
- KerberosRequestorSecurityToken.cs
- IncrementalReadDecoders.cs
- TextTreeRootNode.cs
- ExtentKey.cs
- Interlocked.cs
- StrokeCollectionDefaultValueFactory.cs
- WebPartDescription.cs
- TraceHandlerErrorFormatter.cs
- PaintValueEventArgs.cs
- QilLoop.cs
- WebConfigurationHost.cs
- XmlSerializer.cs
- ReferentialConstraintRoleElement.cs
- DataGridViewRowHeaderCell.cs
- Bidi.cs
- CalendarTable.cs
- RawStylusInputCustomDataList.cs
- ToolbarAUtomationPeer.cs
- WorkflowCommandExtensionItem.cs
- ControlPager.cs
- Soap.cs
- TraceData.cs
- PeerCollaborationPermission.cs
- MetadataCache.cs
- HitTestParameters3D.cs
- TextModifierScope.cs
- DbProviderFactoriesConfigurationHandler.cs
- XmlUrlResolver.cs
- PostBackTrigger.cs
- SetIterators.cs
- EventProviderClassic.cs
- TypeResolvingOptions.cs
- ValueTypeFixupInfo.cs
- ListViewDataItem.cs
- UTF32Encoding.cs
- designeractionlistschangedeventargs.cs
- Context.cs
- DoubleLinkListEnumerator.cs
- EntityDataSourceMemberPath.cs
- VariantWrapper.cs
- RemotingServices.cs
- PropertyGridCommands.cs
- CultureTableRecord.cs