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
- WebPartsPersonalizationAuthorization.cs
- MachineSettingsSection.cs
- TextBoxAutomationPeer.cs
- DesignerVerbCollection.cs
- ListViewHitTestInfo.cs
- ISAPIApplicationHost.cs
- TextSegment.cs
- CodeDelegateCreateExpression.cs
- Int32CAMarshaler.cs
- LabelEditEvent.cs
- EventLogEntryCollection.cs
- StylusTip.cs
- EventLogPermission.cs
- SQLMoney.cs
- TraceSection.cs
- SoapInteropTypes.cs
- InstanceHandleReference.cs
- RemoteWebConfigurationHostServer.cs
- SystemPens.cs
- BaseAutoFormat.cs
- WindowsGraphics.cs
- SingleAnimationUsingKeyFrames.cs
- BinarySerializer.cs
- FontClient.cs
- ClosableStream.cs
- TableSectionStyle.cs
- FactoryId.cs
- PrintDialog.cs
- EventHandlerList.cs
- ProvidePropertyAttribute.cs
- OciHandle.cs
- XslCompiledTransform.cs
- ToolTip.cs
- DefaultSettingsSection.cs
- Roles.cs
- BasicBrowserDialog.designer.cs
- InheritedPropertyChangedEventArgs.cs
- Utils.cs
- OdbcStatementHandle.cs
- CellRelation.cs
- TreeViewHitTestInfo.cs
- StringConverter.cs
- ExpressionBuilderContext.cs
- DecimalStorage.cs
- WpfGeneratedKnownProperties.cs
- ChangeDirector.cs
- WebPartDeleteVerb.cs
- SessionEndingCancelEventArgs.cs
- CodePrimitiveExpression.cs
- PropertyHelper.cs
- SoapServerMethod.cs
- QueryableDataSourceHelper.cs
- SystemResourceHost.cs
- NetworkInterface.cs
- XamlTreeBuilder.cs
- EmptyStringExpandableObjectConverter.cs
- EdgeModeValidation.cs
- PenThreadPool.cs
- ProtocolsConfiguration.cs
- WCFModelStrings.Designer.cs
- ImageIndexEditor.cs
- assertwrapper.cs
- DynamicVirtualDiscoSearcher.cs
- QilParameter.cs
- QilStrConcatenator.cs
- BuildProviderAppliesToAttribute.cs
- CryptoApi.cs
- TextControl.cs
- ListViewTableRow.cs
- ArrayElementGridEntry.cs
- Function.cs
- FileDialog_Vista_Interop.cs
- SoundPlayerAction.cs
- ValidatingReaderNodeData.cs
- Models.cs
- DummyDataSource.cs
- GridViewColumnCollectionChangedEventArgs.cs
- WebPartsPersonalizationAuthorization.cs
- CompiledQueryCacheEntry.cs
- DataFormats.cs
- IIS7WorkerRequest.cs
- NetMsmqSecurity.cs
- StylusPointPropertyId.cs
- MonitoringDescriptionAttribute.cs
- ChangeProcessor.cs
- BuildProvider.cs
- ConcurrentQueue.cs
- LabelLiteral.cs
- ReadOnlyDataSource.cs
- AdornerDecorator.cs
- NameValueFileSectionHandler.cs
- DependencySource.cs
- PipeStream.cs
- RestHandlerFactory.cs
- ToggleButtonAutomationPeer.cs
- XPathNodeHelper.cs
- CompositeFontFamily.cs
- ParameterCollection.cs
- ErrorFormatterPage.cs
- DispatchWrapper.cs