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
- entityreference_tresulttype.cs
- DbConnectionStringBuilder.cs
- SqlCacheDependencyDatabase.cs
- HeaderedItemsControl.cs
- HwndSource.cs
- TextSpan.cs
- Quad.cs
- StreamAsIStream.cs
- DbCommandDefinition.cs
- SqlRetyper.cs
- LocatorManager.cs
- XmlCharType.cs
- QilXmlWriter.cs
- GradientStop.cs
- SqlAliasesReferenced.cs
- TemplateKey.cs
- PageWrapper.cs
- DataReceivedEventArgs.cs
- TimelineCollection.cs
- PolyBezierSegmentFigureLogic.cs
- LockedAssemblyCache.cs
- SafeIUnknown.cs
- EntityTypeEmitter.cs
- InternalPermissions.cs
- ServiceX509SecurityTokenProvider.cs
- SaveFileDialog.cs
- BigInt.cs
- AutomationPropertyInfo.cs
- StrokeIntersection.cs
- SimpleBitVector32.cs
- InternalRelationshipCollection.cs
- HttpWebRequestElement.cs
- tooltip.cs
- GeometryModel3D.cs
- SystemIdentity.cs
- DisplayInformation.cs
- BrowserDefinitionCollection.cs
- _BasicClient.cs
- PhysicalOps.cs
- XmlCountingReader.cs
- NameValueConfigurationCollection.cs
- ListenerUnsafeNativeMethods.cs
- HttpWebResponse.cs
- ColumnPropertiesGroup.cs
- ProxyDataContractResolver.cs
- ResetableIterator.cs
- RootBrowserWindowProxy.cs
- ConstructorNeedsTagAttribute.cs
- SqlDataSourceQuery.cs
- DefaultBindingPropertyAttribute.cs
- ASCIIEncoding.cs
- CodeDelegateCreateExpression.cs
- HandleCollector.cs
- UnsafeNativeMethods.cs
- PersonalizationAdministration.cs
- VariableReference.cs
- RegionData.cs
- NotificationContext.cs
- UrlPath.cs
- MemberInfoSerializationHolder.cs
- LocatorGroup.cs
- DataGridViewHitTestInfo.cs
- CodeIterationStatement.cs
- DependencyObjectValidator.cs
- WebServiceData.cs
- XmlHierarchicalDataSourceView.cs
- AnonymousIdentificationSection.cs
- ThreadInterruptedException.cs
- DurationConverter.cs
- ObjectSet.cs
- InputMethodStateTypeInfo.cs
- QualifiedCellIdBoolean.cs
- XmlReflectionMember.cs
- XmlEncoding.cs
- EdmItemCollection.OcAssemblyCache.cs
- DataTableReaderListener.cs
- VarRemapper.cs
- ReferentialConstraint.cs
- Ticks.cs
- TouchEventArgs.cs
- DiscoveryDocumentLinksPattern.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- NativeMethodsCLR.cs
- WCFServiceClientProxyGenerator.cs
- ComboBox.cs
- Privilege.cs
- BeginStoryboard.cs
- BookmarkScopeInfo.cs
- WebPartVerbsEventArgs.cs
- GroupBox.cs
- SchemaImporterExtension.cs
- ProcessProtocolHandler.cs
- DBConnectionString.cs
- DetailsViewUpdatedEventArgs.cs
- RootDesignerSerializerAttribute.cs
- InternalConfigHost.cs
- cryptoapiTransform.cs
- FormsAuthenticationModule.cs
- DataGridViewCellCollection.cs
- Mouse.cs