Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SimpleRecyclingCache.cs
- TextEditorThreadLocalStore.cs
- FloaterParagraph.cs
- WriterOutput.cs
- Exceptions.cs
- UIInitializationException.cs
- XmlParser.cs
- TextSimpleMarkerProperties.cs
- WebPartCatalogAddVerb.cs
- DecimalConstantAttribute.cs
- ToolStripControlHost.cs
- RangeValueProviderWrapper.cs
- SafeHandle.cs
- View.cs
- _ScatterGatherBuffers.cs
- Stack.cs
- InstanceDataCollection.cs
- Compress.cs
- ObjectRef.cs
- GridViewRowEventArgs.cs
- NumberSubstitution.cs
- ISFTagAndGuidCache.cs
- ProfessionalColorTable.cs
- FileChangesMonitor.cs
- ISessionStateStore.cs
- Rect3D.cs
- StructuredTypeInfo.cs
- SystemKeyConverter.cs
- DataSysAttribute.cs
- StrongNameSignatureInformation.cs
- GenericAuthenticationEventArgs.cs
- RowToParametersTransformer.cs
- AstNode.cs
- MappingItemCollection.cs
- MetadataCache.cs
- VBIdentifierName.cs
- QueryContext.cs
- UndirectedGraph.cs
- SiteMembershipCondition.cs
- RoutedEventValueSerializer.cs
- RadioButtonBaseAdapter.cs
- ObjectReferenceStack.cs
- BitmapEffectCollection.cs
- Parameter.cs
- DefaultBinder.cs
- StreamWriter.cs
- MetadataException.cs
- TcpProcessProtocolHandler.cs
- SafeCryptContextHandle.cs
- WebPartConnectVerb.cs
- XmlMapping.cs
- WebPartTransformerAttribute.cs
- PersonalizationStateInfoCollection.cs
- DocumentGridPage.cs
- IItemContainerGenerator.cs
- QueryExpr.cs
- OdbcConnectionHandle.cs
- HttpResponseInternalBase.cs
- ApplicationHost.cs
- UpDownBase.cs
- WebPartConnectionsConnectVerb.cs
- DataControlFieldCollection.cs
- FilterQuery.cs
- TextBoxView.cs
- BuiltInPermissionSets.cs
- SetStoryboardSpeedRatio.cs
- DbConnectionHelper.cs
- PointLightBase.cs
- RectAnimationClockResource.cs
- DPTypeDescriptorContext.cs
- PaperSource.cs
- SessionPageStateSection.cs
- DefaultEventAttribute.cs
- PanelStyle.cs
- Brush.cs
- Stylesheet.cs
- WebRequestModuleElement.cs
- NameTable.cs
- WmlMobileTextWriter.cs
- ConnectionPoint.cs
- GridViewDesigner.cs
- TextComposition.cs
- ping.cs
- XPathMessageFilterTable.cs
- EntityDataSourceMemberPath.cs
- TextBox.cs
- EmissiveMaterial.cs
- WebPartsPersonalizationAuthorization.cs
- FacetValues.cs
- HostedTransportConfigurationBase.cs
- BuildManager.cs
- CryptoHelper.cs
- SqlFactory.cs
- MaskedTextBoxDesignerActionList.cs
- Calendar.cs
- UIElementIsland.cs
- GifBitmapDecoder.cs
- Simplifier.cs
- TemplateContent.cs
- ResumeStoryboard.cs