Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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
- pingexception.cs
- HostUtils.cs
- MenuItem.cs
- DSACryptoServiceProvider.cs
- SpellerStatusTable.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- CompositionTarget.cs
- RSAProtectedConfigurationProvider.cs
- MetadataException.cs
- MeshGeometry3D.cs
- EntityDataSourceReferenceGroup.cs
- BaseParser.cs
- HandlerBase.cs
- BitmapData.cs
- ZipFileInfo.cs
- GroupDescription.cs
- AuthorizationRule.cs
- CfgParser.cs
- StringConcat.cs
- HttpClientCertificate.cs
- SafeProcessHandle.cs
- NativeMethods.cs
- TraceSection.cs
- RequestCache.cs
- SvcMapFileSerializer.cs
- XpsSerializationManager.cs
- Mapping.cs
- DecodeHelper.cs
- FilterElement.cs
- DataGridTextBoxColumn.cs
- x509utils.cs
- GridViewUpdatedEventArgs.cs
- TextEvent.cs
- PublisherIdentityPermission.cs
- ListenerSessionConnectionReader.cs
- HtmlTableRow.cs
- RelationshipNavigation.cs
- SHA512Managed.cs
- PropertyMappingExceptionEventArgs.cs
- AsyncResult.cs
- SmiTypedGetterSetter.cs
- HwndSourceKeyboardInputSite.cs
- ResourcePool.cs
- CodePropertyReferenceExpression.cs
- CustomCategoryAttribute.cs
- UnaryExpression.cs
- SchemeSettingElementCollection.cs
- HelpOperationInvoker.cs
- GPStream.cs
- SessionSwitchEventArgs.cs
- WeakReferenceEnumerator.cs
- SwitchElementsCollection.cs
- SessionState.cs
- TaskHelper.cs
- IriParsingElement.cs
- CompatibleIComparer.cs
- TypeReference.cs
- RemoveStoryboard.cs
- ObjectAnimationBase.cs
- TrackingProfile.cs
- Track.cs
- CallContext.cs
- CqlParser.cs
- PaintEvent.cs
- BuildProviderUtils.cs
- Camera.cs
- ActiveDocumentEvent.cs
- CodeRegionDirective.cs
- TypeToArgumentTypeConverter.cs
- MonthCalendar.cs
- ComplexTypeEmitter.cs
- PerformanceCountersElement.cs
- ScriptManagerProxy.cs
- EventSinkHelperWriter.cs
- ValidationHelper.cs
- ReachDocumentPageSerializerAsync.cs
- UserNameSecurityTokenProvider.cs
- TraceSection.cs
- baseaxisquery.cs
- PageCodeDomTreeGenerator.cs
- ConsoleCancelEventArgs.cs
- SelectionWordBreaker.cs
- GenericPrincipal.cs
- TextSchema.cs
- TextTreePropertyUndoUnit.cs
- HealthMonitoringSectionHelper.cs
- Vector3DAnimation.cs
- MethodBuilder.cs
- ResourceDescriptionAttribute.cs
- CodeEventReferenceExpression.cs
- KeyInterop.cs
- InlinedAggregationOperatorEnumerator.cs
- PageTrueTypeFont.cs
- BrowserDefinitionCollection.cs
- WebPartDescription.cs
- GlobalizationAssembly.cs
- ChangeNode.cs
- InfoCardHelper.cs
- MediaScriptCommandRoutedEventArgs.cs
- OutputCacheSettings.cs