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
- TraceListeners.cs
- DBParameter.cs
- FileLogRecord.cs
- PropertyInfoSet.cs
- CodeArgumentReferenceExpression.cs
- SmiContext.cs
- OleDbException.cs
- WebColorConverter.cs
- BindToObject.cs
- GridViewDesigner.cs
- DataGridCellsPresenter.cs
- MeshGeometry3D.cs
- PageCache.cs
- RangeValuePatternIdentifiers.cs
- XmlSchema.cs
- Page.cs
- TableRow.cs
- HttpListenerPrefixCollection.cs
- PrefixQName.cs
- CommonRemoteMemoryBlock.cs
- EmbeddedMailObjectsCollection.cs
- AtomParser.cs
- DataBoundControl.cs
- EntityDataSourceChangingEventArgs.cs
- uribuilder.cs
- PropertyGrid.cs
- DataBoundControl.cs
- TdsRecordBufferSetter.cs
- StretchValidation.cs
- RequestCacheManager.cs
- FrameworkContentElement.cs
- securestring.cs
- ClientType.cs
- ObjectDataSource.cs
- DbExpressionRules.cs
- SharedPersonalizationStateInfo.cs
- RenamedEventArgs.cs
- HttpModuleAction.cs
- ImmutableObjectAttribute.cs
- HttpResponseBase.cs
- XmlCharType.cs
- RelOps.cs
- HttpRuntime.cs
- Message.cs
- SourceFileBuildProvider.cs
- TemplateManager.cs
- MultipartContentParser.cs
- HelpExampleGenerator.cs
- ImageIndexConverter.cs
- HelpProvider.cs
- xdrvalidator.cs
- ElementUtil.cs
- ReadOnlyCollectionBase.cs
- EnumType.cs
- SRDisplayNameAttribute.cs
- XmlSchemaFacet.cs
- IdnElement.cs
- MenuAutomationPeer.cs
- TagNameToTypeMapper.cs
- HttpResponseHeader.cs
- TemplatePropertyEntry.cs
- TitleStyle.cs
- TextSchema.cs
- SingleAnimationUsingKeyFrames.cs
- ConnectionManagementElementCollection.cs
- MessageDecoder.cs
- HashHelpers.cs
- ContentPresenter.cs
- FlowDocumentScrollViewer.cs
- EntityContainerEmitter.cs
- ExtractedStateEntry.cs
- diagnosticsswitches.cs
- SqlNodeTypeOperators.cs
- Quad.cs
- ListSortDescription.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SqlStatistics.cs
- infer.cs
- WindowsSidIdentity.cs
- ConversionContext.cs
- SingleTagSectionHandler.cs
- ViewGenerator.cs
- LexicalChunk.cs
- DataGridViewCellEventArgs.cs
- AttributeSetAction.cs
- Stack.cs
- InternalControlCollection.cs
- GetFileNameResult.cs
- PartitionerQueryOperator.cs
- MarkedHighlightComponent.cs
- NavigationEventArgs.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- CircleHotSpot.cs
- propertytag.cs
- SizeF.cs
- DataBindingExpressionBuilder.cs
- NumericExpr.cs
- CultureSpecificStringDictionary.cs
- ChannelCredentials.cs
- DocumentOrderQuery.cs