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
- ConfigurationManagerHelperFactory.cs
- BulletDecorator.cs
- Column.cs
- GeneralTransform.cs
- ReceiveMessageContent.cs
- RSACryptoServiceProvider.cs
- SortDescription.cs
- QualificationDataItem.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- JpegBitmapDecoder.cs
- SqlCommandBuilder.cs
- InitiatorSessionSymmetricTransportSecurityProtocol.cs
- SqlDuplicator.cs
- BindToObject.cs
- LicenseException.cs
- ZoneIdentityPermission.cs
- ToolStripDropDownDesigner.cs
- ResXBuildProvider.cs
- TransformConverter.cs
- StylusPointCollection.cs
- NetTcpSecurity.cs
- EventMap.cs
- WorkflowDesignerMessageFilter.cs
- GeneralTransform.cs
- DataGridViewImageColumn.cs
- Hash.cs
- EmptyImpersonationContext.cs
- SimpleBitVector32.cs
- TypeLibConverter.cs
- ChangeConflicts.cs
- ControlCollection.cs
- Substitution.cs
- Msec.cs
- DependencyPropertyKind.cs
- SurrogateSelector.cs
- RegexBoyerMoore.cs
- TraceData.cs
- IisTraceWebEventProvider.cs
- GridViewUpdatedEventArgs.cs
- BoundsDrawingContextWalker.cs
- XsltQilFactory.cs
- ImageClickEventArgs.cs
- SlipBehavior.cs
- DateTimeParse.cs
- ContainerFilterService.cs
- ListViewItem.cs
- mda.cs
- TouchFrameEventArgs.cs
- PropertyPath.cs
- SwitchElementsCollection.cs
- XmlConvert.cs
- KnownColorTable.cs
- DocumentXmlWriter.cs
- MouseWheelEventArgs.cs
- LayoutEngine.cs
- GeneralTransform2DTo3D.cs
- IsolatedStorageFileStream.cs
- PropertyNames.cs
- FrameworkContentElement.cs
- ReferencedType.cs
- OrderablePartitioner.cs
- WriteLine.cs
- CodeTypeReferenceExpression.cs
- DataGridState.cs
- Visual.cs
- base64Transforms.cs
- TargetFrameworkUtil.cs
- ToolStripLabel.cs
- ExpressionSelection.cs
- ResourceExpressionEditor.cs
- ValueUtilsSmi.cs
- DropShadowBitmapEffect.cs
- GeometryConverter.cs
- CqlParser.cs
- DesignTimeTemplateParser.cs
- WebPartVerbCollection.cs
- XsltContext.cs
- SortedList.cs
- FunctionDetailsReader.cs
- StringOutput.cs
- EntityTypeBase.cs
- TransformConverter.cs
- DecryptedHeader.cs
- SwitchAttribute.cs
- VectorCollectionConverter.cs
- SerializationInfo.cs
- AttachedPropertiesService.cs
- DependsOnAttribute.cs
- UpDownBase.cs
- Site.cs
- EmptyTextWriter.cs
- EventManager.cs
- ParameterBuilder.cs
- SHA256.cs
- PtsHost.cs
- PriorityQueue.cs
- GridProviderWrapper.cs
- MethodBuilderInstantiation.cs
- RsaSecurityTokenParameters.cs
- FixedSOMTable.cs