Code:
/ DotNET / DotNET / 8.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
- DragEventArgs.cs
- DataGridViewColumnTypePicker.cs
- AnimationClockResource.cs
- HttpCacheParams.cs
- AssociationTypeEmitter.cs
- EventArgs.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- CmsInterop.cs
- PersonalizableAttribute.cs
- MethodBody.cs
- CodeArrayIndexerExpression.cs
- InheritanceAttribute.cs
- RegionInfo.cs
- PolyBezierSegmentFigureLogic.cs
- RenderCapability.cs
- LayoutEngine.cs
- Base64Encoding.cs
- DataGridPreparingCellForEditEventArgs.cs
- XmlSchemaExternal.cs
- SessionEndingEventArgs.cs
- AdCreatedEventArgs.cs
- EventMap.cs
- PublishLicense.cs
- DesignerSerializationManager.cs
- RealProxy.cs
- ScriptHandlerFactory.cs
- Underline.cs
- IsolatedStorage.cs
- DefaultTextStore.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- EntityClassGenerator.cs
- SystemWebExtensionsSectionGroup.cs
- DetailsView.cs
- DomainUpDown.cs
- PageContent.cs
- JsonEncodingStreamWrapper.cs
- SmiRequestExecutor.cs
- XmlDocumentType.cs
- OptimalTextSource.cs
- InteropExecutor.cs
- UndoEngine.cs
- Rotation3DAnimationBase.cs
- TextElementEditingBehaviorAttribute.cs
- KeyboardEventArgs.cs
- WindowsRebar.cs
- MulticastDelegate.cs
- MetadataArtifactLoaderFile.cs
- UInt16Storage.cs
- PageTheme.cs
- XmlBindingWorker.cs
- IItemContainerGenerator.cs
- GridSplitter.cs
- IFlowDocumentViewer.cs
- TemplateBamlTreeBuilder.cs
- SafeRegistryHandle.cs
- PageAdapter.cs
- Operators.cs
- HttpClientProtocol.cs
- DataTableMapping.cs
- DBSqlParserTableCollection.cs
- BindUriHelper.cs
- RequestDescription.cs
- InvalidComObjectException.cs
- SrgsText.cs
- LinearQuaternionKeyFrame.cs
- ValuePatternIdentifiers.cs
- SafeHandles.cs
- DataRecordInfo.cs
- XsltCompileContext.cs
- PointCollection.cs
- CodeAccessPermission.cs
- CipherData.cs
- CodeMemberField.cs
- UnorderedHashRepartitionStream.cs
- TransformerInfoCollection.cs
- ValuePatternIdentifiers.cs
- PersonalizableTypeEntry.cs
- SystemIPGlobalStatistics.cs
- LoadRetryHandler.cs
- BindingManagerDataErrorEventArgs.cs
- MemberDomainMap.cs
- DocumentDesigner.cs
- CreateUserWizardStep.cs
- Hashtable.cs
- BitArray.cs
- MetaModel.cs
- UserNameSecurityToken.cs
- RuleRef.cs
- smtppermission.cs
- XmlEnumAttribute.cs
- EncodingStreamWrapper.cs
- MobileErrorInfo.cs
- SetStateEventArgs.cs
- OdbcStatementHandle.cs
- SafeFindHandle.cs
- ShapingEngine.cs
- TypeGeneratedEventArgs.cs
- ResXBuildProvider.cs
- SessionParameter.cs
- ProxyGenerator.cs