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
- WebBrowserEvent.cs
- SByteConverter.cs
- SiteMapNode.cs
- TreeNodeBinding.cs
- PathFigureCollectionValueSerializer.cs
- PassportAuthenticationModule.cs
- ThreadStaticAttribute.cs
- DataTableMapping.cs
- InputBuffer.cs
- oledbmetadatacolumnnames.cs
- RuleSetDialog.Designer.cs
- CursorConverter.cs
- processwaithandle.cs
- Timer.cs
- WinEventWrap.cs
- ToolStripComboBox.cs
- WebPartCatalogCloseVerb.cs
- CharEnumerator.cs
- WebSysDefaultValueAttribute.cs
- SimpleExpression.cs
- DesignerVerb.cs
- Scripts.cs
- HuffModule.cs
- TextElement.cs
- WebPartCollection.cs
- DebuggerAttributes.cs
- TemplateGroupCollection.cs
- ProtocolsConfigurationEntry.cs
- SystemWebSectionGroup.cs
- NavigationProgressEventArgs.cs
- PasswordPropertyTextAttribute.cs
- JavaScriptObjectDeserializer.cs
- HttpClientCertificate.cs
- IFlowDocumentViewer.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ContainerParagraph.cs
- TextElementEditingBehaviorAttribute.cs
- Predicate.cs
- Condition.cs
- XmlSchemaValidator.cs
- CharUnicodeInfo.cs
- Dispatcher.cs
- Label.cs
- PartitionResolver.cs
- Parser.cs
- ControlPropertyNameConverter.cs
- UITypeEditor.cs
- XmlSchemaSimpleType.cs
- Scene3D.cs
- WebPartEventArgs.cs
- CodeComment.cs
- ValueSerializer.cs
- DataGridViewTopLeftHeaderCell.cs
- ListItemParagraph.cs
- hresults.cs
- TableItemPatternIdentifiers.cs
- BitmapSizeOptions.cs
- ResourceExpression.cs
- RelOps.cs
- NativeWindow.cs
- PriorityBinding.cs
- ReadOnlyDictionary.cs
- AdCreatedEventArgs.cs
- X509CertificateChain.cs
- MissingManifestResourceException.cs
- SqlUtil.cs
- IgnoreSectionHandler.cs
- Dictionary.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- WebContext.cs
- RemotingSurrogateSelector.cs
- DecimalAnimationBase.cs
- TextParentUndoUnit.cs
- PrimitiveType.cs
- SafeNativeMethodsOther.cs
- WriteableBitmap.cs
- Vector3D.cs
- PasswordRecovery.cs
- FormViewPageEventArgs.cs
- ImportCatalogPart.cs
- ParameterBuilder.cs
- ResourceReferenceExpression.cs
- AutomationPropertyInfo.cs
- Mappings.cs
- DiagnosticTrace.cs
- SortedList.cs
- AdvancedBindingEditor.cs
- WebPartEditorOkVerb.cs
- QuestionEventArgs.cs
- Renderer.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- ObjectNavigationPropertyMapping.cs
- UTF32Encoding.cs
- TemplateManager.cs
- CLRBindingWorker.cs
- SourceItem.cs
- KeyInterop.cs
- DBCommand.cs
- SqlCommandBuilder.cs
- UnsafeCollabNativeMethods.cs