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
- IdentifierElement.cs
- UnauthorizedAccessException.cs
- SecurityHeaderLayout.cs
- XamlWrappingReader.cs
- PublisherMembershipCondition.cs
- SendParametersContent.cs
- MenuItem.cs
- GeometryDrawing.cs
- ToolStripContentPanelRenderEventArgs.cs
- WorkflowShape.cs
- ComponentSerializationService.cs
- RegexNode.cs
- AsmxEndpointPickerExtension.cs
- SQLMembershipProvider.cs
- RotateTransform.cs
- TableRow.cs
- MetadataUtil.cs
- Ticks.cs
- Socket.cs
- Rotation3DAnimation.cs
- EntityDataSource.cs
- TextUtf8RawTextWriter.cs
- ApplicationDirectoryMembershipCondition.cs
- SettingsPropertyNotFoundException.cs
- CodeThrowExceptionStatement.cs
- RolePrincipal.cs
- SecurityTokenResolver.cs
- DataServiceProcessingPipelineEventArgs.cs
- DataServiceEntityAttribute.cs
- SafeTimerHandle.cs
- Endpoint.cs
- ApplicationProxyInternal.cs
- StrongTypingException.cs
- BuildResult.cs
- ParameterToken.cs
- URL.cs
- UnicodeEncoding.cs
- MailMessageEventArgs.cs
- AdjustableArrowCap.cs
- NopReturnReader.cs
- SortedList.cs
- Vector3DAnimationBase.cs
- TimeZoneInfo.cs
- TrustManagerMoreInformation.cs
- TrackPoint.cs
- ListChangedEventArgs.cs
- ObjectParameterCollection.cs
- SizeFConverter.cs
- WebZone.cs
- DesignObjectWrapper.cs
- EntityContainerRelationshipSet.cs
- ControlAdapter.cs
- NumberFormatInfo.cs
- StreamInfo.cs
- ProtocolsSection.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- KerberosSecurityTokenAuthenticator.cs
- OracleFactory.cs
- RectValueSerializer.cs
- XmlAnyAttributeAttribute.cs
- HandleScope.cs
- XsltContext.cs
- PrintControllerWithStatusDialog.cs
- ParallelTimeline.cs
- SamlConstants.cs
- ToolBarButtonDesigner.cs
- HttpVersion.cs
- FileBasedResourceGroveler.cs
- BasicViewGenerator.cs
- EntitySetBaseCollection.cs
- PrintPreviewGraphics.cs
- BitmapEffect.cs
- DependsOnAttribute.cs
- FormViewDeletedEventArgs.cs
- ScaleTransform3D.cs
- SelectionPattern.cs
- RenderDataDrawingContext.cs
- X509Chain.cs
- TextSchema.cs
- EditorPartCollection.cs
- MenuItemBindingCollection.cs
- MethodRental.cs
- XPathSelfQuery.cs
- NavigationPropertyEmitter.cs
- Clipboard.cs
- EdmMember.cs
- StylusPoint.cs
- DebuggerAttributes.cs
- XpsFixedPageReaderWriter.cs
- IndentedWriter.cs
- TrackingServices.cs
- CharacterString.cs
- Win32.cs
- ProxyWebPartManager.cs
- TrailingSpaceComparer.cs
- SpellerInterop.cs
- Thumb.cs
- ContainerUtilities.cs
- CommonProperties.cs
- ProcessHostMapPath.cs