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
- DotExpr.cs
- LinqExpressionNormalizer.cs
- DiscoveryUtility.cs
- SamlConstants.cs
- controlskin.cs
- ReferentialConstraint.cs
- EpmTargetTree.cs
- DelegatingTypeDescriptionProvider.cs
- LinqDataSource.cs
- WebPartConnectionCollection.cs
- GridViewEditEventArgs.cs
- AttachedPropertyMethodSelector.cs
- Menu.cs
- CheckBoxRenderer.cs
- DictionaryBase.cs
- Region.cs
- SafeBitVector32.cs
- newinstructionaction.cs
- SelectorItemAutomationPeer.cs
- HttpListener.cs
- UnsafeNativeMethods.cs
- MultipleViewProviderWrapper.cs
- SocketPermission.cs
- StylusTip.cs
- XmlQuerySequence.cs
- ImageAttributes.cs
- shaperfactoryquerycachekey.cs
- SubMenuStyle.cs
- SHA512Managed.cs
- SimpleLine.cs
- MediaTimeline.cs
- DataListItem.cs
- XmlSerializationWriter.cs
- ApplicationCommands.cs
- ProjectionCamera.cs
- SoapDocumentServiceAttribute.cs
- WebPartUserCapability.cs
- smtppermission.cs
- PointConverter.cs
- WebContext.cs
- ReaderWriterLockWrapper.cs
- PenLineCapValidation.cs
- TraceHandlerErrorFormatter.cs
- TreeNodeStyle.cs
- ValidationError.cs
- IdleTimeoutMonitor.cs
- XmlResolver.cs
- D3DImage.cs
- XmlAttributeCache.cs
- RawStylusInputReport.cs
- DBAsyncResult.cs
- LinqDataSourceDisposeEventArgs.cs
- PropertyDescriptorComparer.cs
- TrustManagerPromptUI.cs
- InvalidStoreProtectionKeyException.cs
- DataBindingHandlerAttribute.cs
- Border.cs
- SafeFileMappingHandle.cs
- SymbolType.cs
- SmtpAuthenticationManager.cs
- WorkflowWebHostingModule.cs
- ReferenceService.cs
- StackBuilderSink.cs
- DataTableReader.cs
- _CommandStream.cs
- OuterGlowBitmapEffect.cs
- NameSpaceEvent.cs
- PEFileReader.cs
- UnlockInstanceCommand.cs
- documentation.cs
- WindowsFormsSynchronizationContext.cs
- _TLSstream.cs
- HttpHandlerActionCollection.cs
- SelectionItemPattern.cs
- Model3D.cs
- FixUpCollection.cs
- XmlSerializationReader.cs
- ConfigXmlWhitespace.cs
- FilterQuery.cs
- FullTextLine.cs
- PeerInvitationResponse.cs
- DataGridColumn.cs
- QilList.cs
- ElapsedEventArgs.cs
- ValidationContext.cs
- WCFModelStrings.Designer.cs
- DrawingBrush.cs
- DeviceContext2.cs
- NativeRightsManagementAPIsStructures.cs
- FontStyles.cs
- TypeConverterHelper.cs
- CompositeFontInfo.cs
- FormClosingEvent.cs
- TextServicesCompartmentEventSink.cs
- PhonemeEventArgs.cs
- BindingFormattingDialog.cs
- Registry.cs
- ObjectPersistData.cs
- ProtocolElementCollection.cs
- OrderPreservingPipeliningMergeHelper.cs