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
- RouteParameter.cs
- Attributes.cs
- GroupItemAutomationPeer.cs
- AssertFilter.cs
- ClientSettings.cs
- Domain.cs
- DesignerDataStoredProcedure.cs
- UInt32Storage.cs
- ExpandCollapsePattern.cs
- WindowsTab.cs
- XamlPointCollectionSerializer.cs
- BitmapEffectRenderDataResource.cs
- SqlSelectStatement.cs
- SerialErrors.cs
- ChildrenQuery.cs
- QilUnary.cs
- WebMessageEncodingBindingElement.cs
- ClientApiGenerator.cs
- ValueUtilsSmi.cs
- DbProviderFactoriesConfigurationHandler.cs
- HashCodeCombiner.cs
- glyphs.cs
- PreviewPrintController.cs
- PasswordTextContainer.cs
- List.cs
- SafeBitVector32.cs
- WhitespaceRuleReader.cs
- ConfigXmlSignificantWhitespace.cs
- FontFamily.cs
- SourceElementsCollection.cs
- ReferenceEqualityComparer.cs
- ParseHttpDate.cs
- DataGridRelationshipRow.cs
- XPathNodeInfoAtom.cs
- XPathNodeHelper.cs
- WebReference.cs
- ListViewGroup.cs
- RegexCompiler.cs
- DesignerVerbCollection.cs
- TextDecorations.cs
- BamlLocalizer.cs
- Parser.cs
- SessionStateSection.cs
- Stream.cs
- SafeFileHandle.cs
- WSTrustDec2005.cs
- EntityContainer.cs
- HostingEnvironmentSection.cs
- MailWriter.cs
- QueryPageSettingsEventArgs.cs
- FormDocumentDesigner.cs
- HTMLTextWriter.cs
- EmptyImpersonationContext.cs
- PageBuildProvider.cs
- XmlTextAttribute.cs
- PathFigureCollection.cs
- EventRecordWrittenEventArgs.cs
- PersonalizationState.cs
- ServiceHttpModule.cs
- SecurityKeyUsage.cs
- AnnotationHighlightLayer.cs
- HtmlInputButton.cs
- ZipIOModeEnforcingStream.cs
- ToolStripLocationCancelEventArgs.cs
- SafeSystemMetrics.cs
- DummyDataSource.cs
- PolicyLevel.cs
- GeometryHitTestParameters.cs
- FileChangesMonitor.cs
- BasicHttpSecurityElement.cs
- SettingsAttributeDictionary.cs
- BaseCodeDomTreeGenerator.cs
- RadioButtonRenderer.cs
- InfoCardSymmetricAlgorithm.cs
- DataBindingsDialog.cs
- SourceElementsCollection.cs
- TransformerInfo.cs
- XsdDataContractImporter.cs
- WebUtility.cs
- ZipFileInfoCollection.cs
- Int16Storage.cs
- TypeCodeDomSerializer.cs
- ReturnType.cs
- EncodingNLS.cs
- ProviderConnectionPointCollection.cs
- ParserHooks.cs
- KeyGestureConverter.cs
- BrowserCapabilitiesCompiler.cs
- WorkerRequest.cs
- PropertyGroupDescription.cs
- XamlWrappingReader.cs
- TextBoxBase.cs
- DataColumnMapping.cs
- ColorConvertedBitmap.cs
- ReadWriteSpinLock.cs
- DeviceSpecificDialogCachedState.cs
- SQLBinary.cs
- TypeToken.cs
- WindowsComboBox.cs
- BinaryParser.cs