Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Dom / XmlComment.cs / 1305376 / 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
- FillErrorEventArgs.cs
- XmlCharType.cs
- HttpChannelBindingToken.cs
- SettingsAttributes.cs
- DebuggerAttributes.cs
- XmlILStorageConverter.cs
- HttpListenerException.cs
- PropertyPushdownHelper.cs
- InternalConfigSettingsFactory.cs
- DoubleLinkListEnumerator.cs
- DesignOnlyAttribute.cs
- TemplateInstanceAttribute.cs
- ContainerUIElement3D.cs
- RegistryExceptionHelper.cs
- AutoGeneratedField.cs
- GenericEnumConverter.cs
- SrgsRulesCollection.cs
- TableItemProviderWrapper.cs
- UIntPtr.cs
- GeometryCombineModeValidation.cs
- EdmConstants.cs
- DllNotFoundException.cs
- CalendarDayButton.cs
- GridViewColumnHeader.cs
- StylusShape.cs
- KeyGestureConverter.cs
- BatchServiceHost.cs
- VirtualPathProvider.cs
- ResourceDefaultValueAttribute.cs
- ProtocolsConfigurationHandler.cs
- PageSetupDialog.cs
- RuntimeWrappedException.cs
- ClientSideQueueItem.cs
- BufferedGraphicsContext.cs
- ContainerSelectorGlyph.cs
- FormsAuthenticationUserCollection.cs
- ResourceDictionary.cs
- KeyPressEvent.cs
- ManagementInstaller.cs
- TableCell.cs
- HttpFileCollection.cs
- GridViewSelectEventArgs.cs
- FormViewModeEventArgs.cs
- ThicknessKeyFrameCollection.cs
- InkCanvasSelectionAdorner.cs
- CmsInterop.cs
- UserControl.cs
- FreezableCollection.cs
- ByteAnimationUsingKeyFrames.cs
- SyntaxCheck.cs
- EnvelopedSignatureTransform.cs
- GradientStop.cs
- ClientBuildManagerCallback.cs
- Converter.cs
- DoWorkEventArgs.cs
- WindowsStatusBar.cs
- CustomValidator.cs
- DBSqlParserColumn.cs
- DataKey.cs
- DataGridItemEventArgs.cs
- ExpressionBuilder.cs
- XpsDigitalSignature.cs
- OverflowException.cs
- ObjectDataSourceSelectingEventArgs.cs
- AcceleratedTokenProvider.cs
- XmlNotation.cs
- HtmlLink.cs
- DynamicValidator.cs
- XmlElementAttribute.cs
- CombinedGeometry.cs
- MetadataItem_Static.cs
- DbMetaDataFactory.cs
- ErrorActivity.cs
- CodeCompileUnit.cs
- SdlChannelSink.cs
- AttributeEmitter.cs
- Timer.cs
- ObjectResult.cs
- PublishLicense.cs
- XamlClipboardData.cs
- LogicalTreeHelper.cs
- KeyNotFoundException.cs
- Int32Storage.cs
- NativeCppClassAttribute.cs
- DesignerForm.cs
- UTF32Encoding.cs
- DivideByZeroException.cs
- SamlDelegatingWriter.cs
- AudioSignalProblemOccurredEventArgs.cs
- RootBrowserWindowAutomationPeer.cs
- WebPartConnectionsCancelVerb.cs
- Internal.cs
- DesignerOptionService.cs
- VisualStyleElement.cs
- InkCanvasAutomationPeer.cs
- RemoteDebugger.cs
- Environment.cs
- PlainXmlWriter.cs
- FontStretchConverter.cs
- TemplateControlCodeDomTreeGenerator.cs