Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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
- WebPartMinimizeVerb.cs
- ItemsChangedEventArgs.cs
- Internal.cs
- Point3DCollection.cs
- ValidationService.cs
- CommandDevice.cs
- CommandDesigner.cs
- WinEventHandler.cs
- ObfuscateAssemblyAttribute.cs
- ReferencedCollectionType.cs
- StatusBarDesigner.cs
- XmlObjectSerializer.cs
- TitleStyle.cs
- QueryContinueDragEventArgs.cs
- StorageMappingFragment.cs
- ColorContext.cs
- StructuredProperty.cs
- ToolStripDropDownMenu.cs
- HttpRequestWrapper.cs
- NamespaceInfo.cs
- HttpModulesSection.cs
- Int64Animation.cs
- FormattedTextSymbols.cs
- RegexStringValidator.cs
- LinkClickEvent.cs
- CssStyleCollection.cs
- ZipIOModeEnforcingStream.cs
- OleDbEnumerator.cs
- CharEntityEncoderFallback.cs
- PersonalizationStateQuery.cs
- EntityDesignerUtils.cs
- EnvelopeVersion.cs
- DBConnection.cs
- PathFigure.cs
- ScrollProperties.cs
- PrimaryKeyTypeConverter.cs
- CodeStatement.cs
- Stack.cs
- IndexingContentUnit.cs
- RSAProtectedConfigurationProvider.cs
- PasswordBoxAutomationPeer.cs
- UxThemeWrapper.cs
- HttpListenerElement.cs
- Knowncolors.cs
- UriTemplatePathPartiallyEquivalentSet.cs
- StrokeSerializer.cs
- ReaderWriterLockSlim.cs
- IListConverters.cs
- StringInfo.cs
- RoutedEventArgs.cs
- Tuple.cs
- FocusWithinProperty.cs
- X509CertificateChain.cs
- StagingAreaInputItem.cs
- SmiRequestExecutor.cs
- RMEnrollmentPage1.cs
- ObjectManager.cs
- DataServiceQueryProvider.cs
- TemplateXamlTreeBuilder.cs
- Fonts.cs
- QueryParameter.cs
- ConfigurationValidatorAttribute.cs
- NativeMethods.cs
- ImageInfo.cs
- EdmProviderManifest.cs
- SecurityException.cs
- DivideByZeroException.cs
- OleDbCommand.cs
- FontSizeConverter.cs
- DodSequenceMerge.cs
- SeverityFilter.cs
- AppearanceEditorPart.cs
- RSAOAEPKeyExchangeDeformatter.cs
- FieldToken.cs
- ByteStorage.cs
- BaseCodePageEncoding.cs
- GridView.cs
- TextDecorationCollection.cs
- Switch.cs
- CookieProtection.cs
- MatrixCamera.cs
- RepeaterCommandEventArgs.cs
- FontDifferentiator.cs
- DesignerAttribute.cs
- XmlAnyElementAttributes.cs
- BuildProvidersCompiler.cs
- TableLayoutStyleCollection.cs
- _KerberosClient.cs
- UpdateCommand.cs
- ApplicationSettingsBase.cs
- TargetParameterCountException.cs
- DataGridSortingEventArgs.cs
- DataGridViewLinkColumn.cs
- IgnoreDataMemberAttribute.cs
- SafeFileMapViewHandle.cs
- PerformanceCounterLib.cs
- TextTreeTextElementNode.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- TextRunProperties.cs
- FileInfo.cs