Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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
- StringArrayConverter.cs
- SafeNativeMethods.cs
- FormViewPagerRow.cs
- WebPartTransformerAttribute.cs
- WebPartCollection.cs
- DATA_BLOB.cs
- ToolStripSeparator.cs
- SudsParser.cs
- cache.cs
- WarningException.cs
- recordstatefactory.cs
- ElapsedEventArgs.cs
- ParseHttpDate.cs
- HelpPage.cs
- DataControlPagerLinkButton.cs
- SizeF.cs
- DataGridColumnCollection.cs
- NumberSubstitution.cs
- AppDomainAttributes.cs
- HighlightVisual.cs
- DataContractAttribute.cs
- PerformanceCounters.cs
- DesignerSerializationOptionsAttribute.cs
- TileModeValidation.cs
- SymDocumentType.cs
- ITextView.cs
- HttpPostedFile.cs
- LogRestartAreaEnumerator.cs
- WindowsNonControl.cs
- XmlValidatingReaderImpl.cs
- _StreamFramer.cs
- WindowsPen.cs
- X509Certificate2Collection.cs
- _OSSOCK.cs
- Win32KeyboardDevice.cs
- StyleBamlTreeBuilder.cs
- ContextQuery.cs
- Composition.cs
- XmlnsDictionary.cs
- XsltQilFactory.cs
- ListItemCollection.cs
- AspProxy.cs
- LongPath.cs
- ContextMenuStrip.cs
- StringPropertyBuilder.cs
- BitmapEffectOutputConnector.cs
- ChangesetResponse.cs
- XmlAttributeAttribute.cs
- CodeDirectoryCompiler.cs
- Scheduling.cs
- XmlDocumentSurrogate.cs
- KeySplineConverter.cs
- LookupBindingPropertiesAttribute.cs
- SystemInfo.cs
- Rotation3DKeyFrameCollection.cs
- SmtpNegotiateAuthenticationModule.cs
- QilSortKey.cs
- DataComponentGenerator.cs
- XmlnsPrefixAttribute.cs
- MultiTrigger.cs
- Crypto.cs
- Timer.cs
- DesignerVerbToolStripMenuItem.cs
- X509RecipientCertificateServiceElement.cs
- ParentUndoUnit.cs
- ListMarkerSourceInfo.cs
- ValidatorCompatibilityHelper.cs
- TdsParser.cs
- ScrollBar.cs
- CfgArc.cs
- CngKeyCreationParameters.cs
- HtmlEmptyTagControlBuilder.cs
- CodeDirectionExpression.cs
- KeyValueInternalCollection.cs
- BamlBinaryWriter.cs
- MultiPageTextView.cs
- XmlSignificantWhitespace.cs
- ThicknessAnimation.cs
- KerberosReceiverSecurityToken.cs
- Win32MouseDevice.cs
- BufferedOutputStream.cs
- XmlElement.cs
- WebEventCodes.cs
- NavigatingCancelEventArgs.cs
- RecognizedAudio.cs
- WebServiceHandler.cs
- BaseServiceProvider.cs
- SqlGenericUtil.cs
- DispatchWrapper.cs
- CodeAccessSecurityEngine.cs
- GeometryHitTestParameters.cs
- VectorAnimationUsingKeyFrames.cs
- ScrollItemPatternIdentifiers.cs
- XmlName.cs
- FlowchartDesignerCommands.cs
- DES.cs
- Help.cs
- RetriableClipboard.cs
- FlowDocumentReaderAutomationPeer.cs
- XmlDocumentFieldSchema.cs