Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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;
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SecurityProtocol.cs
- EntityContainerAssociationSet.cs
- XmlSchemaSet.cs
- TextOutput.cs
- CodeObject.cs
- LongValidatorAttribute.cs
- Debug.cs
- NextPreviousPagerField.cs
- RepeaterItemCollection.cs
- Events.cs
- CallInfo.cs
- Number.cs
- Cursor.cs
- DBSchemaRow.cs
- ManagementObjectSearcher.cs
- DataGridViewRowPrePaintEventArgs.cs
- QilGenerator.cs
- TextCompositionEventArgs.cs
- WorkflowViewService.cs
- BitmapEffectDrawingContextWalker.cs
- Style.cs
- MenuEventArgs.cs
- BookmarkNameHelper.cs
- ZipIOExtraFieldPaddingElement.cs
- webclient.cs
- ObjectReferenceStack.cs
- WindowsComboBox.cs
- ThreadAbortException.cs
- FontSourceCollection.cs
- XhtmlTextWriter.cs
- ReliabilityContractAttribute.cs
- CatalogZoneBase.cs
- ParserStreamGeometryContext.cs
- XmlBaseWriter.cs
- StringCollection.cs
- AuthorizationRuleCollection.cs
- DataGridCellsPresenter.cs
- TypeToken.cs
- DocumentSequence.cs
- NamespaceQuery.cs
- SQLMembershipProvider.cs
- DrawItemEvent.cs
- SortableBindingList.cs
- SystemWebSectionGroup.cs
- _FtpControlStream.cs
- AuthenticationSection.cs
- IndexOutOfRangeException.cs
- VarInfo.cs
- ToolStripAdornerWindowService.cs
- FontFamily.cs
- DataSourceHelper.cs
- DataGridViewCell.cs
- ColumnHeader.cs
- CompiledXpathExpr.cs
- ShaderEffect.cs
- ServiceModelReg.cs
- RandomNumberGenerator.cs
- SatelliteContractVersionAttribute.cs
- AuthenticationManager.cs
- SplineKeyFrames.cs
- ServiceContractGenerationContext.cs
- XmlChildNodes.cs
- UTF8Encoding.cs
- DispatcherEventArgs.cs
- RecordsAffectedEventArgs.cs
- objectquery_tresulttype.cs
- OracleConnectionString.cs
- _FtpControlStream.cs
- ExplicitDiscriminatorMap.cs
- ToolStripControlHost.cs
- StackBuilderSink.cs
- PropertyMappingExceptionEventArgs.cs
- SiteMapNodeItemEventArgs.cs
- BindingNavigator.cs
- _DomainName.cs
- PageThemeCodeDomTreeGenerator.cs
- OleDbStruct.cs
- OptimisticConcurrencyException.cs
- FrugalMap.cs
- SafeNativeMethods.cs
- PointUtil.cs
- SelectionUIService.cs
- DataSourceProvider.cs
- ProfileSettings.cs
- DataGridViewCellPaintingEventArgs.cs
- Label.cs
- TextServicesPropertyRanges.cs
- GZipObjectSerializer.cs
- ChooseAction.cs
- BrowserCapabilitiesFactory.cs
- ByteStorage.cs
- ToolboxItemAttribute.cs
- FileDataSourceCache.cs
- WmlLinkAdapter.cs
- _HeaderInfo.cs
- FontSizeConverter.cs
- Identity.cs
- GridViewSelectEventArgs.cs
- PasswordTextNavigator.cs
- TrustSection.cs