Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- RequestCache.cs
- baseshape.cs
- ExecutionEngineException.cs
- IdentitySection.cs
- StructuredTypeEmitter.cs
- DataGridViewColumnTypePicker.cs
- ScrollChrome.cs
- StorageEntityTypeMapping.cs
- OrderedDictionary.cs
- Column.cs
- SymbolTable.cs
- XNodeSchemaApplier.cs
- TypeBuilderInstantiation.cs
- StylusPointProperty.cs
- StringReader.cs
- XmlValidatingReaderImpl.cs
- CachingHintValidation.cs
- TextWriter.cs
- XmlAutoDetectWriter.cs
- SwitchElementsCollection.cs
- SafeProcessHandle.cs
- InkCanvasSelectionAdorner.cs
- WorkflowTransactionOptions.cs
- StoragePropertyMapping.cs
- TextProperties.cs
- DataGridViewColumnEventArgs.cs
- ImageAttributes.cs
- PersonalizationProvider.cs
- KeyInstance.cs
- SurrogateDataContract.cs
- HttpMethodConstraint.cs
- NetworkStream.cs
- GroupBox.cs
- DrawingAttributeSerializer.cs
- NotificationContext.cs
- TreeNodeConverter.cs
- DataGridViewColumnCollectionDialog.cs
- ResumeStoryboard.cs
- SettingsPropertyValue.cs
- DropDownButton.cs
- ToolStripRendererSwitcher.cs
- BatchStream.cs
- RuntimeConfig.cs
- SoapExtensionStream.cs
- WindowsFormsSynchronizationContext.cs
- PictureBoxDesigner.cs
- SerializationEventsCache.cs
- regiisutil.cs
- StringArrayConverter.cs
- StatusBar.cs
- AmbiguousMatchException.cs
- BinaryFormatterWriter.cs
- CellRelation.cs
- WebPartDescription.cs
- MultiAsyncResult.cs
- MatrixTransform3D.cs
- RegexTree.cs
- SchemaComplexType.cs
- Root.cs
- VisualStyleRenderer.cs
- ImportedPolicyConversionContext.cs
- Hashtable.cs
- KeyGesture.cs
- NameSpaceExtractor.cs
- RenderDataDrawingContext.cs
- PartManifestEntry.cs
- CommandHelpers.cs
- ExpressionTable.cs
- OperationAbortedException.cs
- SystemResources.cs
- CurrentChangedEventManager.cs
- ButtonRenderer.cs
- ProgressBar.cs
- ToolStripRendererSwitcher.cs
- InputMethod.cs
- LinearKeyFrames.cs
- LassoHelper.cs
- MailWriter.cs
- ConnectionProviderAttribute.cs
- MethodCallTranslator.cs
- TraceXPathNavigator.cs
- TreeNodeConverter.cs
- ModelService.cs
- CounterSampleCalculator.cs
- EntityTemplateUserControl.cs
- BaseCodePageEncoding.cs
- GifBitmapDecoder.cs
- ConnectionStringSettingsCollection.cs
- Operator.cs
- GridView.cs
- HtmlAnchor.cs
- VisualCollection.cs
- AsymmetricKeyExchangeDeformatter.cs
- XmlReflectionMember.cs
- HtmlFormAdapter.cs
- MaterializeFromAtom.cs
- DataSpaceManager.cs
- ToolStripTemplateNode.cs
- UnauthorizedWebPart.cs
- ContainerSelectorActiveEvent.cs