Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- TextShapeableCharacters.cs
- ThreadPool.cs
- SelectionPattern.cs
- TreeNode.cs
- MultiView.cs
- ArraySegment.cs
- XmlSchemaCollection.cs
- SQLResource.cs
- ProtocolViolationException.cs
- DateRangeEvent.cs
- HttpResponse.cs
- CqlParserHelpers.cs
- TypeSystem.cs
- EmptyQuery.cs
- ReadOnlyPropertyMetadata.cs
- ControlAdapter.cs
- MetadataArtifactLoaderCompositeFile.cs
- DragStartedEventArgs.cs
- SpecialNameAttribute.cs
- ModelTypeConverter.cs
- RangeContentEnumerator.cs
- NamespaceInfo.cs
- DataServiceBuildProvider.cs
- NativeBuffer.cs
- GeneralTransform3DTo2D.cs
- AdornerPresentationContext.cs
- RootProfilePropertySettingsCollection.cs
- _NtlmClient.cs
- ControlCollection.cs
- RelationshipEndCollection.cs
- DataFormats.cs
- JavaScriptObjectDeserializer.cs
- TreeNodeBinding.cs
- MetadataPropertyAttribute.cs
- Models.cs
- Process.cs
- BitmapDownload.cs
- WmiEventSink.cs
- TypeDescriptionProviderAttribute.cs
- OutputCacheSection.cs
- AutomationAttributeInfo.cs
- PropagatorResult.cs
- ConfigurationSchemaErrors.cs
- SessionStateContainer.cs
- InternalTransaction.cs
- XmlWriterTraceListener.cs
- externdll.cs
- BamlTreeMap.cs
- WebPartCollection.cs
- ControlHelper.cs
- HtmlTextBoxAdapter.cs
- MembershipValidatePasswordEventArgs.cs
- MulticastNotSupportedException.cs
- XsltArgumentList.cs
- ClientSideProviderDescription.cs
- AttributeExtensions.cs
- typedescriptorpermissionattribute.cs
- IsolatedStorageFile.cs
- HttpResponse.cs
- WebPartZoneBase.cs
- XamlFigureLengthSerializer.cs
- control.ime.cs
- DataGridColumn.cs
- DesignTimeTemplateParser.cs
- CatalogPartCollection.cs
- TextBoxRenderer.cs
- ExtentJoinTreeNode.cs
- DataSpaceManager.cs
- MessageBox.cs
- ISCIIEncoding.cs
- WorkflowInstanceProvider.cs
- SecurityElement.cs
- ListViewItemEventArgs.cs
- RuntimeConfig.cs
- UpWmlMobileTextWriter.cs
- WsdlBuildProvider.cs
- CodePrimitiveExpression.cs
- TextSelectionProcessor.cs
- XmlBoundElement.cs
- BooleanAnimationBase.cs
- SettingsAttributes.cs
- StreamWithDictionary.cs
- WindowsListViewScroll.cs
- RequestCacheEntry.cs
- ClientSession.cs
- StreamGeometry.cs
- DataGridAddNewRow.cs
- FrameworkElementAutomationPeer.cs
- TypeDescriptionProvider.cs
- GeneralTransformCollection.cs
- DifferencingCollection.cs
- WindowsAuthenticationEventArgs.cs
- __Filters.cs
- IdentityNotMappedException.cs
- IdentityModelDictionary.cs
- ExclusiveHandleList.cs
- PixelFormats.cs
- TextTreeRootTextBlock.cs
- _SslState.cs
- BitStream.cs