Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / CompMod / System / CodeDOM / CodeComment.cs / 1 / CodeComment.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.CodeDom {
using System.Diagnostics;
using System;
using Microsoft.Win32;
using System.Collections;
using System.Runtime.InteropServices;
///
/// Represents a comment.
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeComment : CodeObject {
private string text;
private bool docComment = false;
///
///
/// Initializes a new instance of .
///
///
public CodeComment() {
}
///
///
/// Initializes a new instance of with the specified text as
/// contents.
///
///
public CodeComment(string text) {
Text = text;
}
///
/// [To be supplied.]
///
public CodeComment(string text, bool docComment) {
Text = text;
this.docComment = docComment;
}
///
/// [To be supplied.]
///
public bool DocComment {
get {
return docComment;
}
set {
docComment = value;
}
}
///
///
/// Gets or setes
/// the text of the comment.
///
///
public string Text {
get {
return (text == null) ? string.Empty : text;
}
set {
text = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.CodeDom {
using System.Diagnostics;
using System;
using Microsoft.Win32;
using System.Collections;
using System.Runtime.InteropServices;
///
/// Represents a comment.
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeComment : CodeObject {
private string text;
private bool docComment = false;
///
///
/// Initializes a new instance of .
///
///
public CodeComment() {
}
///
///
/// Initializes a new instance of with the specified text as
/// contents.
///
///
public CodeComment(string text) {
Text = text;
}
///
/// [To be supplied.]
///
public CodeComment(string text, bool docComment) {
Text = text;
this.docComment = docComment;
}
///
/// [To be supplied.]
///
public bool DocComment {
get {
return docComment;
}
set {
docComment = value;
}
}
///
///
/// Gets or setes
/// the text of the comment.
///
///
public string Text {
get {
return (text == null) ? string.Empty : text;
}
set {
text = value;
}
}
}
}
// 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
- DynamicResourceExtensionConverter.cs
- CodeSubDirectory.cs
- ContentDefinition.cs
- RelativeSource.cs
- DataBoundControlActionList.cs
- PieceDirectory.cs
- ObjectDataSourceStatusEventArgs.cs
- X509PeerCertificateAuthenticationElement.cs
- CacheDependency.cs
- OpCopier.cs
- PlainXmlSerializer.cs
- DPAPIProtectedConfigurationProvider.cs
- selecteditemcollection.cs
- GeometryModel3D.cs
- IdentityHolder.cs
- VScrollProperties.cs
- XNodeValidator.cs
- WmlMobileTextWriter.cs
- PeerNearMe.cs
- DynamicRenderer.cs
- XmlBinaryReader.cs
- OdbcTransaction.cs
- EditorAttributeInfo.cs
- SqlCrossApplyToCrossJoin.cs
- pingexception.cs
- SendMailErrorEventArgs.cs
- DocumentReferenceCollection.cs
- DataGrid.cs
- VisualStyleRenderer.cs
- GotoExpression.cs
- Pens.cs
- RequestCacheEntry.cs
- Pair.cs
- TemplateContent.cs
- DefaultPropertyAttribute.cs
- DayRenderEvent.cs
- AudioFileOut.cs
- XamlGridLengthSerializer.cs
- WindowPatternIdentifiers.cs
- DesignTimeDataBinding.cs
- Invariant.cs
- BuildManagerHost.cs
- Italic.cs
- EdmFunction.cs
- OracleDataReader.cs
- AssertUtility.cs
- TemplatedAdorner.cs
- LineInfo.cs
- IsolatedStorageException.cs
- _SafeNetHandles.cs
- Ray3DHitTestResult.cs
- TemplateNodeContextMenu.cs
- _UriSyntax.cs
- SimpleExpression.cs
- WebFormsRootDesigner.cs
- Vector3DAnimationUsingKeyFrames.cs
- CodeSnippetCompileUnit.cs
- WarningException.cs
- ActivityInstance.cs
- ImageInfo.cs
- StringArrayConverter.cs
- ColumnClickEvent.cs
- OleDbReferenceCollection.cs
- PropertyValueChangedEvent.cs
- SafeBitVector32.cs
- ResourceDisplayNameAttribute.cs
- SapiAttributeParser.cs
- ContainerVisual.cs
- ColorKeyFrameCollection.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- NativeMethods.cs
- HtmlControl.cs
- SchemaInfo.cs
- XmlILTrace.cs
- ServiceModelConfigurationSectionCollection.cs
- WinFormsSecurity.cs
- _FtpControlStream.cs
- EncodingNLS.cs
- KeyedCollection.cs
- FixedLineResult.cs
- MessageQueuePermissionEntryCollection.cs
- EnterpriseServicesHelper.cs
- DataGridViewCell.cs
- KeyFrames.cs
- FastEncoderWindow.cs
- SafeNativeMethodsMilCoreApi.cs
- PresentationSource.cs
- ClassValidator.cs
- BasicDesignerLoader.cs
- ComponentResourceKey.cs
- Latin1Encoding.cs
- XPathArrayIterator.cs
- DesignerListAdapter.cs
- CompilationSection.cs
- ProcessModelSection.cs
- BooleanAnimationUsingKeyFrames.cs
- IdleTimeoutMonitor.cs
- PropertyDescriptorCollection.cs
- WebUtil.cs
- NCryptNative.cs