Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Quaternion.cs
- entitydatasourceentitysetnameconverter.cs
- WebPartAuthorizationEventArgs.cs
- PolygonHotSpot.cs
- NullableDecimalMinMaxAggregationOperator.cs
- SatelliteContractVersionAttribute.cs
- PointF.cs
- KeyboardNavigation.cs
- WebPartPersonalization.cs
- Ops.cs
- SmiGettersStream.cs
- Preprocessor.cs
- WebPartDisplayMode.cs
- MultidimensionalArrayItemReference.cs
- IPAddressCollection.cs
- DefaultPrintController.cs
- MethodCallTranslator.cs
- AttachmentCollection.cs
- RequestQueue.cs
- Size3D.cs
- RequestCacheManager.cs
- TextBoxDesigner.cs
- OutOfMemoryException.cs
- ContentPosition.cs
- NotifyCollectionChangedEventArgs.cs
- KeyInstance.cs
- COM2ComponentEditor.cs
- QueryOpcode.cs
- StringDictionary.cs
- Attribute.cs
- SoapObjectInfo.cs
- WrappedDispatcherException.cs
- ConfigsHelper.cs
- PatternMatcher.cs
- TableLayoutPanelCellPosition.cs
- ComNativeDescriptor.cs
- NetTcpSecurity.cs
- MediaPlayer.cs
- TraceLog.cs
- X509CertificateValidator.cs
- OdbcCommand.cs
- MultiByteCodec.cs
- ContentWrapperAttribute.cs
- TextBoxAutoCompleteSourceConverter.cs
- WebBrowserPermission.cs
- DbParameterHelper.cs
- CallbackHandler.cs
- EncoderReplacementFallback.cs
- AppDomainProtocolHandler.cs
- COSERVERINFO.cs
- ObjectAssociationEndMapping.cs
- WindowsComboBox.cs
- GuidelineCollection.cs
- WindowsFormsHelpers.cs
- XmlAttributes.cs
- PropertyRecord.cs
- MatrixValueSerializer.cs
- DisableDpiAwarenessAttribute.cs
- UrlMappingsModule.cs
- UrlPath.cs
- TypeProvider.cs
- NamedPipeHostedTransportConfiguration.cs
- XmlWrappingReader.cs
- ContextMenuStripGroupCollection.cs
- Util.cs
- TrackingRecord.cs
- HttpCapabilitiesSectionHandler.cs
- BitmapEffectInput.cs
- TerminateDesigner.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- PipelineModuleStepContainer.cs
- AuthStoreRoleProvider.cs
- ElementMarkupObject.cs
- AuthenticationManager.cs
- RuntimeIdentifierPropertyAttribute.cs
- TimeSpan.cs
- SingleConverter.cs
- DataSourceControl.cs
- XmlReader.cs
- TextTreeTextBlock.cs
- DeleteBookmarkScope.cs
- ConfigurationStrings.cs
- translator.cs
- ClientFormsIdentity.cs
- TdsParserSessionPool.cs
- LinqDataSourceView.cs
- DataGridColumnEventArgs.cs
- ValidatingPropertiesEventArgs.cs
- DiffuseMaterial.cs
- TextViewBase.cs
- PathGradientBrush.cs
- SizeChangedEventArgs.cs
- RightsManagementResourceHelper.cs
- MustUnderstandSoapException.cs
- DataBinder.cs
- SpotLight.cs
- DataTemplateKey.cs
- ProfileGroupSettingsCollection.cs
- ToolStripProgressBar.cs
- XhtmlBasicPageAdapter.cs