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
- DataControlFieldCollection.cs
- MarkupCompiler.cs
- AccessKeyManager.cs
- PageSettings.cs
- Renderer.cs
- SerializationEventsCache.cs
- RadioButtonList.cs
- LinkDescriptor.cs
- BuilderPropertyEntry.cs
- RuntimeVariablesExpression.cs
- TextModifier.cs
- RemoteWebConfigurationHostStream.cs
- StyleReferenceConverter.cs
- BindingCompleteEventArgs.cs
- HighlightVisual.cs
- ViewLoader.cs
- nulltextcontainer.cs
- XmlIterators.cs
- RegexEditorDialog.cs
- ApplicationHost.cs
- StorageConditionPropertyMapping.cs
- Sorting.cs
- ColumnTypeConverter.cs
- XmlArrayItemAttributes.cs
- HttpException.cs
- DataPager.cs
- HttpProfileGroupBase.cs
- UIntPtr.cs
- ActivityStateRecord.cs
- webeventbuffer.cs
- HttpServerVarsCollection.cs
- PageContent.cs
- CodeDirectiveCollection.cs
- AuthenticatingEventArgs.cs
- TypeDescriptionProvider.cs
- FeatureSupport.cs
- IntSecurity.cs
- StringArrayConverter.cs
- XmlSchemaAll.cs
- FontWeight.cs
- BinaryFormatterWriter.cs
- TabPage.cs
- WindowsSpinner.cs
- GlyphRunDrawing.cs
- AssociativeAggregationOperator.cs
- PrimitiveType.cs
- _HeaderInfoTable.cs
- SettingsAttributeDictionary.cs
- TreeViewImageKeyConverter.cs
- ValidationErrorEventArgs.cs
- PlaceHolder.cs
- HMACSHA512.cs
- TextRenderer.cs
- EntitySetBaseCollection.cs
- NonBatchDirectoryCompiler.cs
- BufferedGraphics.cs
- CodePageEncoding.cs
- ImageFormat.cs
- TypeToken.cs
- PolicyValidator.cs
- ProjectionCamera.cs
- FieldBuilder.cs
- LinqDataSource.cs
- CategoryGridEntry.cs
- HttpHandlersSection.cs
- OutputCacheSection.cs
- OutputScope.cs
- BindToObject.cs
- QuadraticEase.cs
- TextEffectResolver.cs
- FamilyMapCollection.cs
- SamlAssertion.cs
- ByteFacetDescriptionElement.cs
- XLinq.cs
- TextEditor.cs
- WebPartTransformer.cs
- TabControlCancelEvent.cs
- BitFlagsGenerator.cs
- PersonalizableAttribute.cs
- AjaxFrameworkAssemblyAttribute.cs
- Int64KeyFrameCollection.cs
- IndexedEnumerable.cs
- BypassElementCollection.cs
- ListControl.cs
- SqlParameterCollection.cs
- MetafileHeaderWmf.cs
- DataGridRowEventArgs.cs
- Unit.cs
- ImageMapEventArgs.cs
- PackageController.cs
- UniqueEventHelper.cs
- EntityModelBuildProvider.cs
- ScriptModule.cs
- HScrollProperties.cs
- HttpHeaderCollection.cs
- ValueConversionAttribute.cs
- DateTimeFormat.cs
- HtmlSelect.cs
- SubtreeProcessor.cs
- CodeExpressionStatement.cs