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
- GridViewAutoFormat.cs
- AssemblyFilter.cs
- SystemMulticastIPAddressInformation.cs
- MdiWindowListItemConverter.cs
- RSAPKCS1SignatureFormatter.cs
- OutputScopeManager.cs
- Adorner.cs
- RootBrowserWindow.cs
- DesignerView.cs
- SqlInternalConnectionTds.cs
- Button.cs
- ServicePerformanceCounters.cs
- RIPEMD160Managed.cs
- TypeUtil.cs
- ProtocolsConfiguration.cs
- SoapFormatter.cs
- FolderBrowserDialog.cs
- TemplatePartAttribute.cs
- WmlPhoneCallAdapter.cs
- SoapSchemaMember.cs
- SmiXetterAccessMap.cs
- RotateTransform.cs
- SynchronizedInputPattern.cs
- ColorKeyFrameCollection.cs
- BufferedGraphics.cs
- ContentElement.cs
- EditorAttribute.cs
- DynamicEntity.cs
- ContentTextAutomationPeer.cs
- PlanCompiler.cs
- LinkTarget.cs
- BamlLocalizer.cs
- ImportStoreException.cs
- TextPatternIdentifiers.cs
- KeySplineConverter.cs
- EntitySqlQueryCacheEntry.cs
- Matrix.cs
- WebPartConnectVerb.cs
- FlowDocumentPageViewerAutomationPeer.cs
- IODescriptionAttribute.cs
- CaseStatement.cs
- FlatButtonAppearance.cs
- XmlSchemaIdentityConstraint.cs
- XmlIlTypeHelper.cs
- ControlUtil.cs
- tooltip.cs
- DoubleLinkList.cs
- XhtmlTextWriter.cs
- DataMemberConverter.cs
- DeviceFiltersSection.cs
- TemplateBaseAction.cs
- EntryPointNotFoundException.cs
- CollectionViewSource.cs
- SecurityResources.cs
- XamlInterfaces.cs
- XmlQueryOutput.cs
- precedingsibling.cs
- CodeValidator.cs
- SerializationStore.cs
- EventDescriptor.cs
- BaseCodePageEncoding.cs
- DirectoryRootQuery.cs
- ReadOnlyDataSource.cs
- TextProperties.cs
- ChtmlLinkAdapter.cs
- PageThemeParser.cs
- ComPlusInstanceContextInitializer.cs
- EmptyElement.cs
- ToolBar.cs
- SystemInfo.cs
- ZoneLinkButton.cs
- DesignerForm.cs
- SourceElementsCollection.cs
- XPathAxisIterator.cs
- FilterQueryOptionExpression.cs
- GradientBrush.cs
- Polygon.cs
- Monitor.cs
- TransactionProtocol.cs
- TextBounds.cs
- Validator.cs
- ButtonChrome.cs
- AmbientLight.cs
- XmlSchemaGroup.cs
- HandlerMappingMemo.cs
- CacheHelper.cs
- ButtonAutomationPeer.cs
- RelatedCurrencyManager.cs
- BrowserCapabilitiesCompiler.cs
- TableCell.cs
- SessionViewState.cs
- SpStreamWrapper.cs
- Array.cs
- BindingMAnagerBase.cs
- GenericQueueSurrogate.cs
- LicenseManager.cs
- ToolStripRenderer.cs
- InternalBase.cs
- WsatTransactionInfo.cs
- Trace.cs