Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- SiteMapNodeItem.cs
- _NetworkingPerfCounters.cs
- BulletedListEventArgs.cs
- GetPageCompletedEventArgs.cs
- ObjectConverter.cs
- ContentPresenter.cs
- ColorContextHelper.cs
- FigureHelper.cs
- DataColumnMapping.cs
- HttpErrorTraceRecord.cs
- EnlistmentState.cs
- VisualStateGroup.cs
- CompilerCollection.cs
- PointConverter.cs
- XmlSerializableWriter.cs
- OleDbConnection.cs
- Listbox.cs
- DesignerListAdapter.cs
- CancelAsyncOperationRequest.cs
- _IPv6Address.cs
- ClientRolePrincipal.cs
- HiddenField.cs
- ConnectionStringsExpressionBuilder.cs
- oledbmetadatacollectionnames.cs
- OrderedDictionary.cs
- StatusBarDesigner.cs
- DrawListViewSubItemEventArgs.cs
- FtpWebResponse.cs
- WindowsListViewScroll.cs
- TerminateDesigner.cs
- SafePEFileHandle.cs
- TimeSpanStorage.cs
- UpDownBase.cs
- SurrogateSelector.cs
- ConstantProjectedSlot.cs
- ListBoxItemAutomationPeer.cs
- DocumentViewerBaseAutomationPeer.cs
- FileDocument.cs
- ClientTargetSection.cs
- CommonGetThemePartSize.cs
- ILGenerator.cs
- PersonalizationAdministration.cs
- ObjectQueryState.cs
- MULTI_QI.cs
- ChannelSinkStacks.cs
- GeometryValueSerializer.cs
- UserNamePasswordClientCredential.cs
- DrawTreeNodeEventArgs.cs
- UpdatePanelControlTrigger.cs
- MeasureItemEvent.cs
- SqlTransaction.cs
- GorillaCodec.cs
- OneToOneMappingSerializer.cs
- GiveFeedbackEventArgs.cs
- HMACMD5.cs
- DataGridViewCellStyle.cs
- InvokePatternIdentifiers.cs
- TypeExtension.cs
- TempFiles.cs
- WebBaseEventKeyComparer.cs
- IApplicationTrustManager.cs
- RequiredFieldValidator.cs
- AssemblyBuilder.cs
- SiteIdentityPermission.cs
- Light.cs
- ClientSettingsSection.cs
- SizeFConverter.cs
- SafePointer.cs
- CharEntityEncoderFallback.cs
- Translator.cs
- TraceLevelHelper.cs
- DependencyPropertyConverter.cs
- SystemKeyConverter.cs
- HttpRequest.cs
- XhtmlConformanceSection.cs
- TableDetailsRow.cs
- FileInfo.cs
- TitleStyle.cs
- XamlTypeMapperSchemaContext.cs
- GatewayIPAddressInformationCollection.cs
- RuntimeWrappedException.cs
- IsolationInterop.cs
- EnumerableRowCollection.cs
- SymbolPair.cs
- Table.cs
- RangeContentEnumerator.cs
- CorePropertiesFilter.cs
- BypassElementCollection.cs
- RectAnimationUsingKeyFrames.cs
- DataGridViewColumn.cs
- XPathArrayIterator.cs
- BindMarkupExtensionSerializer.cs
- NavigationProgressEventArgs.cs
- Quad.cs
- PropertyPath.cs
- RegularExpressionValidator.cs
- ContainsRowNumberChecker.cs
- ShaderEffect.cs
- WindowsTooltip.cs
- CryptoHandle.cs