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
- CodeCatchClause.cs
- SamlAttribute.cs
- SoapWriter.cs
- DataTableClearEvent.cs
- InfiniteTimeSpanConverter.cs
- Font.cs
- _UriSyntax.cs
- ObjectNotFoundException.cs
- SerializationHelper.cs
- InputReportEventArgs.cs
- CollectionsUtil.cs
- SID.cs
- StringFreezingAttribute.cs
- JsonXmlDataContract.cs
- TransformDescriptor.cs
- PointKeyFrameCollection.cs
- SystemException.cs
- HandlerFactoryCache.cs
- FigureParagraph.cs
- PointLight.cs
- DateBoldEvent.cs
- GenericTypeParameterBuilder.cs
- HwndMouseInputProvider.cs
- ConfigXmlAttribute.cs
- UpdateCompiler.cs
- Hash.cs
- TextEditorSelection.cs
- WindowsProgressbar.cs
- control.ime.cs
- ToolStripDropDownButton.cs
- IODescriptionAttribute.cs
- LayoutEvent.cs
- RowSpanVector.cs
- TemplateInstanceAttribute.cs
- Effect.cs
- ControlBuilder.cs
- LinqDataView.cs
- StringToken.cs
- SmtpTransport.cs
- RestHandler.cs
- HostedTransportConfigurationBase.cs
- PopupRoot.cs
- ArraySegment.cs
- SoapClientMessage.cs
- Point.cs
- HtmlInputCheckBox.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- Int64AnimationUsingKeyFrames.cs
- ErrorHandlingReceiver.cs
- WorkerRequest.cs
- MultiBindingExpression.cs
- Base64Decoder.cs
- XmlQueryType.cs
- XmlUTF8TextReader.cs
- CaretElement.cs
- FrameworkRichTextComposition.cs
- DrawingDrawingContext.cs
- Encoder.cs
- FixedNode.cs
- NativeMethods.cs
- Point.cs
- DefaultAsyncDataDispatcher.cs
- DetailsViewPageEventArgs.cs
- DetailsViewUpdatedEventArgs.cs
- SineEase.cs
- ContainerControl.cs
- BaseCodePageEncoding.cs
- DataSourceDescriptorCollection.cs
- Scripts.cs
- CopyEncoder.cs
- PointCollection.cs
- SmiXetterAccessMap.cs
- DataGridTextColumn.cs
- SemaphoreSecurity.cs
- InputReport.cs
- OpacityConverter.cs
- ProfileBuildProvider.cs
- BackEase.cs
- TextOptions.cs
- EndpointConfigContainer.cs
- DelegateTypeInfo.cs
- WindowsServiceElement.cs
- mediaclock.cs
- PageDeviceFont.cs
- DirectoryNotFoundException.cs
- TimeStampChecker.cs
- WebEventCodes.cs
- SapiAttributeParser.cs
- ZipIOBlockManager.cs
- XslAst.cs
- DataBinding.cs
- ImageSource.cs
- RSAPKCS1SignatureDeformatter.cs
- LogRestartAreaEnumerator.cs
- QilChoice.cs
- CustomWebEventKey.cs
- RegisteredScript.cs
- HttpCacheParams.cs
- NoneExcludedImageIndexConverter.cs
- CaseStatementProjectedSlot.cs