Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Dom / XmlComment.cs / 1305376 / 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
- XPathBinder.cs
- safelink.cs
- StackBuilderSink.cs
- XmlText.cs
- SourceLineInfo.cs
- SrgsItemList.cs
- PolicyChain.cs
- GeometryDrawing.cs
- xmlsaver.cs
- SystemInfo.cs
- CoTaskMemHandle.cs
- TargetException.cs
- ExpressionBuilderCollection.cs
- ProcessModelInfo.cs
- Comparer.cs
- TripleDESCryptoServiceProvider.cs
- DocumentReferenceCollection.cs
- PersonalizationStateInfoCollection.cs
- MouseButtonEventArgs.cs
- IIS7UserPrincipal.cs
- ParserOptions.cs
- TypeInitializationException.cs
- ConfigPathUtility.cs
- MultipartContentParser.cs
- SemanticResolver.cs
- ScriptingProfileServiceSection.cs
- _CommandStream.cs
- StylusPointProperties.cs
- SmtpNtlmAuthenticationModule.cs
- FileSystemWatcher.cs
- LinqDataSourceValidationException.cs
- IdnElement.cs
- ColumnMapTranslator.cs
- SmtpException.cs
- GatewayIPAddressInformationCollection.cs
- DocumentApplication.cs
- AdPostCacheSubstitution.cs
- WebServiceHost.cs
- ObjectResult.cs
- Point3DCollection.cs
- XmlSchemaSimpleTypeList.cs
- TreeNodeBinding.cs
- ControlValuePropertyAttribute.cs
- ProxyWebPartConnectionCollection.cs
- IItemProperties.cs
- SQLSingleStorage.cs
- ValidationContext.cs
- ParenExpr.cs
- XmlBuffer.cs
- ParserHooks.cs
- XmlWrappingWriter.cs
- DataMemberListEditor.cs
- ServiceBusyException.cs
- BinaryConverter.cs
- StrokeFIndices.cs
- CompilationRelaxations.cs
- TreeView.cs
- TreeNodeCollectionEditor.cs
- UshortList2.cs
- ExecutionEngineException.cs
- UniqueEventHelper.cs
- DSASignatureFormatter.cs
- WindowsSpinner.cs
- ExceptionUtil.cs
- SchemaObjectWriter.cs
- MenuEventArgs.cs
- SinglePageViewer.cs
- XmlNotation.cs
- ProtocolException.cs
- MexTcpBindingElement.cs
- OdbcEnvironment.cs
- PopupRoot.cs
- XmlSchemaInfo.cs
- Set.cs
- GenericEnumerator.cs
- EnumType.cs
- AddInControllerImpl.cs
- HotSpotCollection.cs
- PropertyChangingEventArgs.cs
- MessageEventSubscriptionService.cs
- EllipseGeometry.cs
- SrgsRule.cs
- PerfService.cs
- MimeXmlImporter.cs
- SimpleMailWebEventProvider.cs
- Pen.cs
- MediaScriptCommandRoutedEventArgs.cs
- PageStatePersister.cs
- AsyncResult.cs
- DBConcurrencyException.cs
- DataControlCommands.cs
- SqlCacheDependencySection.cs
- ExecutedRoutedEventArgs.cs
- BindingList.cs
- FusionWrap.cs
- SoapSchemaImporter.cs
- ListMarkerLine.cs
- SizeIndependentAnimationStorage.cs
- XamlDebuggerXmlReader.cs
- XmlSerializationGeneratedCode.cs