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
- SecurityTokenTypes.cs
- DependencyObjectProvider.cs
- WindowProviderWrapper.cs
- TrustManager.cs
- CodeAttributeArgument.cs
- DiscriminatorMap.cs
- Material.cs
- ThrowOnMultipleAssignment.cs
- FileUtil.cs
- SafeNativeMethodsMilCoreApi.cs
- LocalValueEnumerator.cs
- PointUtil.cs
- EventSinkActivity.cs
- FileAccessException.cs
- counter.cs
- designeractionbehavior.cs
- MeasureItemEvent.cs
- X509Certificate2.cs
- TextDecorationLocationValidation.cs
- WebPartCloseVerb.cs
- GridErrorDlg.cs
- InputScope.cs
- FontTypeConverter.cs
- ColorContextHelper.cs
- FormsAuthenticationUser.cs
- ListViewContainer.cs
- NameTable.cs
- SchemaLookupTable.cs
- HttpListenerContext.cs
- RadioButtonPopupAdapter.cs
- ValueSerializerAttribute.cs
- ErrorFormatterPage.cs
- HostExecutionContextManager.cs
- SiteMapProvider.cs
- DataBindingValueUIHandler.cs
- MetadataFile.cs
- SqlBuilder.cs
- FlowDocument.cs
- DataGridViewTextBoxEditingControl.cs
- StorageEntityTypeMapping.cs
- ControlCollection.cs
- EventSchemaTraceListener.cs
- XPathDocument.cs
- SwitchElementsCollection.cs
- DebugInfoGenerator.cs
- WinInetCache.cs
- ValueType.cs
- Queue.cs
- ActiveDocumentEvent.cs
- ComponentEditorForm.cs
- sqlinternaltransaction.cs
- wmiprovider.cs
- PrinterSettings.cs
- SelectedDatesCollection.cs
- PerformanceCounterPermission.cs
- RuntimeResourceSet.cs
- AuthenticatedStream.cs
- WebProxyScriptElement.cs
- webeventbuffer.cs
- HandlerFactoryWrapper.cs
- ReturnValue.cs
- FilterQueryOptionExpression.cs
- CapabilitiesAssignment.cs
- PtsContext.cs
- DesigntimeLicenseContextSerializer.cs
- StringAnimationUsingKeyFrames.cs
- CodeTypeReference.cs
- Path.cs
- _SslSessionsCache.cs
- ReliableSessionElement.cs
- PointAnimationBase.cs
- cookiecontainer.cs
- ApplicationFileParser.cs
- FixedSOMPage.cs
- CurrencyWrapper.cs
- DirectoryRootQuery.cs
- SelectionProcessor.cs
- BooleanToVisibilityConverter.cs
- PrimitiveType.cs
- ActiveXSerializer.cs
- CommonRemoteMemoryBlock.cs
- ButtonFieldBase.cs
- LinqDataSourceValidationException.cs
- DocumentationServerProtocol.cs
- TrackingSection.cs
- SerializationFieldInfo.cs
- HttpVersion.cs
- BmpBitmapDecoder.cs
- ParseHttpDate.cs
- GroupBox.cs
- InteropBitmapSource.cs
- TypeListConverter.cs
- SoapAttributeOverrides.cs
- ProfileGroupSettingsCollection.cs
- AffineTransform3D.cs
- PropertyGeneratedEventArgs.cs
- CustomGrammar.cs
- FunctionNode.cs
- CellLabel.cs
- ShaderEffect.cs