Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // //[....] //----------------------------------------------------------------------------- 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
- ValidationError.cs
- StandardCommands.cs
- KeyBinding.cs
- XPathNavigatorException.cs
- ToolStripDropDownClosingEventArgs.cs
- DesignerEventService.cs
- GeneratedContractType.cs
- DictionaryEditChange.cs
- XmlLanguageConverter.cs
- SkewTransform.cs
- AsyncSerializedWorker.cs
- SelectQueryOperator.cs
- OleDbException.cs
- GroupBox.cs
- ISAPIRuntime.cs
- ClientSession.cs
- GridViewUpdatedEventArgs.cs
- ButtonFlatAdapter.cs
- StylusEventArgs.cs
- SQLString.cs
- MouseEvent.cs
- MultipartContentParser.cs
- ScaleTransform.cs
- ConfigurationCollectionAttribute.cs
- ThreadStateException.cs
- SessionState.cs
- XmlSchemaExternal.cs
- ContentDisposition.cs
- RegexTree.cs
- SQLMoney.cs
- DataServiceEntityAttribute.cs
- DownloadProgressEventArgs.cs
- CultureInfoConverter.cs
- BinaryUtilClasses.cs
- BitSet.cs
- InvokePattern.cs
- PersonalizationProviderHelper.cs
- XmlUtil.cs
- odbcmetadatacolumnnames.cs
- PropertyItemInternal.cs
- RubberbandSelector.cs
- ListCollectionView.cs
- RawStylusInputCustomData.cs
- LiteralControl.cs
- LocalIdKeyIdentifierClause.cs
- GlyphRunDrawing.cs
- RoutedPropertyChangedEventArgs.cs
- TraceLevelStore.cs
- XmlNodeWriter.cs
- Fonts.cs
- CurrencyWrapper.cs
- ToolStripManager.cs
- DATA_BLOB.cs
- ResourceBinder.cs
- EmptyEnumerable.cs
- TextRangeEditTables.cs
- HttpProfileGroupBase.cs
- ClientConfigPaths.cs
- CallSite.cs
- DES.cs
- Normalizer.cs
- WSSecurityJan2004.cs
- AttributeSetAction.cs
- BitHelper.cs
- XamlSerializerUtil.cs
- ProcessModelInfo.cs
- PatternMatcher.cs
- ProfileGroupSettingsCollection.cs
- RenderDataDrawingContext.cs
- WebConfigurationHostFileChange.cs
- ListViewItem.cs
- DropTarget.cs
- IsolatedStorageException.cs
- DocumentSignatureManager.cs
- XmlSchemaComplexType.cs
- Typography.cs
- DispatcherHooks.cs
- StylusEditingBehavior.cs
- AmbientValueAttribute.cs
- OleDbMetaDataFactory.cs
- IpcChannel.cs
- DataGridViewToolTip.cs
- EncryptedXml.cs
- CodeAttributeArgument.cs
- ModuleElement.cs
- messageonlyhwndwrapper.cs
- TaskHelper.cs
- DataError.cs
- ComponentCollection.cs
- MarshalDirectiveException.cs
- LabelLiteral.cs
- Identity.cs
- ListSortDescription.cs
- WebPartTracker.cs
- PeerCollaborationPermission.cs
- SortDescription.cs
- ParallelRangeManager.cs
- Vertex.cs
- IISUnsafeMethods.cs
- XmlTextEncoder.cs