Code:
/ DotNET / DotNET / 8.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
- BmpBitmapDecoder.cs
- RelationshipManager.cs
- counter.cs
- SoapSchemaExporter.cs
- HostingEnvironmentException.cs
- PasswordBoxAutomationPeer.cs
- DrawingGroup.cs
- Visitor.cs
- ChildrenQuery.cs
- EncryptedKey.cs
- Rule.cs
- URLAttribute.cs
- ILGenerator.cs
- WindowInteropHelper.cs
- xml.cs
- NativeMethods.cs
- GridViewRow.cs
- MachineSettingsSection.cs
- OdbcConnectionHandle.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- XmlSchemaCollection.cs
- FormatVersion.cs
- altserialization.cs
- MergablePropertyAttribute.cs
- ExceptionUtil.cs
- ItemsControlAutomationPeer.cs
- ContainerVisual.cs
- XmlSignificantWhitespace.cs
- ToolStripRendererSwitcher.cs
- SoapFormatExtensions.cs
- TextEndOfSegment.cs
- ToolStripItemEventArgs.cs
- ClientApiGenerator.cs
- figurelengthconverter.cs
- ScriptControlManager.cs
- CursorConverter.cs
- Tokenizer.cs
- DoubleLinkList.cs
- AnnotationAuthorChangedEventArgs.cs
- XmlAutoDetectWriter.cs
- DefaultParameterValueAttribute.cs
- FixedPageAutomationPeer.cs
- RequestQueryProcessor.cs
- XPathNavigator.cs
- RelationshipConstraintValidator.cs
- AudioDeviceOut.cs
- CodeTryCatchFinallyStatement.cs
- FontStyles.cs
- NavigationProperty.cs
- BaseDataListDesigner.cs
- FacetEnabledSchemaElement.cs
- SqlDataSourceEnumerator.cs
- ArrayConverter.cs
- XmlAnyElementAttribute.cs
- OAVariantLib.cs
- DataSourceCache.cs
- CommonGetThemePartSize.cs
- KerberosRequestorSecurityToken.cs
- MemberHolder.cs
- PageContentCollection.cs
- InputLanguageSource.cs
- SettingsContext.cs
- MessageQueueEnumerator.cs
- ResourceIDHelper.cs
- SoapExtensionTypeElement.cs
- BrowserDefinition.cs
- GlobalItem.cs
- XmlSchemaSimpleContentExtension.cs
- ToolBarButtonClickEvent.cs
- MsmqIntegrationMessagePool.cs
- ScriptBehaviorDescriptor.cs
- DiscoveryExceptionDictionary.cs
- RenderingBiasValidation.cs
- IndependentAnimationStorage.cs
- AQNBuilder.cs
- BinaryObjectWriter.cs
- IdentityHolder.cs
- SelfSignedCertificate.cs
- FontClient.cs
- PeerCollaborationPermission.cs
- XmlDesignerDataSourceView.cs
- ParentUndoUnit.cs
- Compiler.cs
- DescendentsWalkerBase.cs
- WorkflowInstanceProxy.cs
- XmlSchemaCompilationSettings.cs
- SizeChangedInfo.cs
- TemplateContentLoader.cs
- RawStylusInputCustomDataList.cs
- ArrayTypeMismatchException.cs
- _SSPISessionCache.cs
- EntityConnection.cs
- ComplexLine.cs
- DataGridPageChangedEventArgs.cs
- CodeDOMProvider.cs
- AccessDataSourceView.cs
- FormViewPagerRow.cs
- ToolBarButtonDesigner.cs
- SHA256.cs
- TableNameAttribute.cs