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
- RC2CryptoServiceProvider.cs
- Attribute.cs
- OracleDataAdapter.cs
- WmlPhoneCallAdapter.cs
- PasswordTextContainer.cs
- control.ime.cs
- FileVersion.cs
- EdmToObjectNamespaceMap.cs
- NotifyParentPropertyAttribute.cs
- TimeSpanMinutesConverter.cs
- DSACryptoServiceProvider.cs
- PropertyEmitterBase.cs
- ResXResourceWriter.cs
- DataGridCellEditEndingEventArgs.cs
- ViewCellSlot.cs
- WindowsComboBox.cs
- SafeCertificateContext.cs
- RegistrationProxy.cs
- DataServiceProcessingPipelineEventArgs.cs
- StandardToolWindows.cs
- IndependentAnimationStorage.cs
- ISAPIApplicationHost.cs
- ServerTooBusyException.cs
- TypeResolvingOptions.cs
- StreamResourceInfo.cs
- TriState.cs
- Mappings.cs
- HttpApplicationStateBase.cs
- MatrixStack.cs
- KoreanLunisolarCalendar.cs
- LeaseManager.cs
- SettingsPropertyNotFoundException.cs
- CryptoStream.cs
- TemplateGroupCollection.cs
- DbConnectionStringCommon.cs
- MissingMethodException.cs
- SyntaxCheck.cs
- FunctionImportElement.cs
- KeyInfo.cs
- Expression.cs
- EventProviderClassic.cs
- PropertyManager.cs
- XmlDataLoader.cs
- ResumeStoryboard.cs
- AttributeTable.cs
- SourceSwitch.cs
- MLangCodePageEncoding.cs
- MessageHeaderAttribute.cs
- DataGridViewAdvancedBorderStyle.cs
- PropertyInformationCollection.cs
- OdbcReferenceCollection.cs
- ImportOptions.cs
- SqlCaseSimplifier.cs
- SimpleTextLine.cs
- RuleAction.cs
- CompilationUtil.cs
- GlyphsSerializer.cs
- MultiDataTrigger.cs
- Sentence.cs
- ChannelServices.cs
- ControlBuilderAttribute.cs
- Int32Converter.cs
- UpdatableWrapper.cs
- Button.cs
- XPathAxisIterator.cs
- HttpException.cs
- CodeBinaryOperatorExpression.cs
- DateTimePicker.cs
- DataGrid.cs
- SQLInt32.cs
- ErrorHandler.cs
- datacache.cs
- SharedUtils.cs
- SettingsPropertyNotFoundException.cs
- Span.cs
- AnnotationAuthorChangedEventArgs.cs
- PermissionAttributes.cs
- DataBindingCollection.cs
- UriTemplateTrieLocation.cs
- CDSsyncETWBCLProvider.cs
- diagnosticsswitches.cs
- ProfileModule.cs
- WSHttpBindingBaseElement.cs
- GroupBox.cs
- XamlSerializerUtil.cs
- PropertyGridEditorPart.cs
- RemotingAttributes.cs
- UserPreferenceChangingEventArgs.cs
- TextSpanModifier.cs
- QuadTree.cs
- VisualBasicExpressionConverter.cs
- configsystem.cs
- EmptyEnumerator.cs
- ToolStripItemImageRenderEventArgs.cs
- HttpProtocolImporter.cs
- XPathNavigator.cs
- SessionEndedEventArgs.cs
- Color.cs
- TemplateColumn.cs
- CodeTypeReferenceExpression.cs