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
- SchemaConstraints.cs
- SoapFormatterSinks.cs
- ResourceAssociationTypeEnd.cs
- SignatureDescription.cs
- CodeLinePragma.cs
- ControlParameter.cs
- StylusPointDescription.cs
- MachinePropertyVariants.cs
- ScrollPatternIdentifiers.cs
- VideoDrawing.cs
- CombinedGeometry.cs
- Light.cs
- ShutDownListener.cs
- BooleanSwitch.cs
- FileSecurity.cs
- DelegatedStream.cs
- FlowPosition.cs
- ToolStripSeparatorRenderEventArgs.cs
- TypeGeneratedEventArgs.cs
- StringHandle.cs
- Documentation.cs
- PointLight.cs
- OwnerDrawPropertyBag.cs
- RelationshipEndCollection.cs
- TraversalRequest.cs
- BrushMappingModeValidation.cs
- RunWorkerCompletedEventArgs.cs
- SoapSchemaExporter.cs
- HttpResponseWrapper.cs
- XmlSerializationGeneratedCode.cs
- CheckoutException.cs
- WebPartConnectVerb.cs
- AmbiguousMatchException.cs
- HtmlInputText.cs
- TransactionChannel.cs
- CategoriesDocumentFormatter.cs
- NotCondition.cs
- PageParserFilter.cs
- DataGridViewTextBoxEditingControl.cs
- ContourSegment.cs
- CacheForPrimitiveTypes.cs
- DataObjectMethodAttribute.cs
- BreakRecordTable.cs
- SafeSecurityHelper.cs
- PropertyCondition.cs
- EtwTrace.cs
- DecimalFormatter.cs
- ObjectComplexPropertyMapping.cs
- ScopelessEnumAttribute.cs
- Filter.cs
- DbMetaDataCollectionNames.cs
- SignatureToken.cs
- _DisconnectOverlappedAsyncResult.cs
- StickyNote.cs
- SettingsPropertyWrongTypeException.cs
- Processor.cs
- KeyConstraint.cs
- SystemWebCachingSectionGroup.cs
- DataFormats.cs
- RegistrationServices.cs
- CompilationUnit.cs
- ResizingMessageFilter.cs
- TraceContextRecord.cs
- RijndaelManagedTransform.cs
- ViewStateException.cs
- ObjectTypeMapping.cs
- ImageListUtils.cs
- Int16.cs
- DateTimeFormatInfoScanner.cs
- ChannelSinkStacks.cs
- ConnectionsZone.cs
- GridViewColumnHeader.cs
- UntrustedRecipientException.cs
- ComplexType.cs
- XmlTextEncoder.cs
- SplitterPanel.cs
- TemplateColumn.cs
- BlurBitmapEffect.cs
- NetworkCredential.cs
- FullTextLine.cs
- ListViewUpdateEventArgs.cs
- SerialStream.cs
- MulticastNotSupportedException.cs
- TextEndOfSegment.cs
- SizeAnimationUsingKeyFrames.cs
- XmlILAnnotation.cs
- ToolStripOverflowButton.cs
- GroupByExpressionRewriter.cs
- DataStorage.cs
- DecimalStorage.cs
- GuidelineCollection.cs
- UserControl.cs
- InputScope.cs
- HttpCookie.cs
- HandleCollector.cs
- XmlExceptionHelper.cs
- DescendentsWalkerBase.cs
- ListBoxItem.cs
- Material.cs
- SequentialWorkflowHeaderFooter.cs