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
- handlecollector.cs
- ScriptRef.cs
- RegionData.cs
- Geometry.cs
- IsolatedStorageFile.cs
- GlyphInfoList.cs
- EncoderParameter.cs
- dsa.cs
- HttpValueCollection.cs
- coordinator.cs
- DiscreteKeyFrames.cs
- ListQueryResults.cs
- CoTaskMemHandle.cs
- SiteMapNodeItem.cs
- RepeaterItemEventArgs.cs
- SvcMapFileSerializer.cs
- X509Extension.cs
- AsyncPostBackErrorEventArgs.cs
- BaseValidatorDesigner.cs
- LongValidatorAttribute.cs
- MatrixAnimationUsingPath.cs
- CharEntityEncoderFallback.cs
- BitmapData.cs
- DataRowChangeEvent.cs
- DataGrid.cs
- MenuAutoFormat.cs
- Slider.cs
- DbProviderServices.cs
- SchemaImporterExtensionElement.cs
- DataSourceHelper.cs
- CreatingCookieEventArgs.cs
- ContainsSearchOperator.cs
- WindowsListViewGroupSubsetLink.cs
- MessageCredentialType.cs
- XmlDeclaration.cs
- Int16Storage.cs
- ControlPaint.cs
- SessionSwitchEventArgs.cs
- ConditionCollection.cs
- JapaneseLunisolarCalendar.cs
- GradientStop.cs
- ServiceModelConfigurationSection.cs
- KeyProperty.cs
- ComponentCommands.cs
- MULTI_QI.cs
- DNS.cs
- FixedPage.cs
- IdentityNotMappedException.cs
- GridLength.cs
- Preprocessor.cs
- Parameter.cs
- HtmlValidatorAdapter.cs
- BaseDataListActionList.cs
- basemetadatamappingvisitor.cs
- ExpressionBinding.cs
- SHA256Managed.cs
- ServiceOperationParameter.cs
- DifferencingCollection.cs
- MsmqIntegrationProcessProtocolHandler.cs
- LayoutTable.cs
- ConnectionStringsExpressionBuilder.cs
- Focus.cs
- EventProxy.cs
- ModifierKeysValueSerializer.cs
- EnumerableCollectionView.cs
- InvokeMethod.cs
- SerializationFieldInfo.cs
- TypeSemantics.cs
- TargetControlTypeCache.cs
- Vector3DCollectionConverter.cs
- EndpointAddressElementBase.cs
- SafeNativeMethods.cs
- PreApplicationStartMethodAttribute.cs
- DebugControllerThread.cs
- ItemsChangedEventArgs.cs
- AudioFormatConverter.cs
- XmlSignificantWhitespace.cs
- Label.cs
- UidPropertyAttribute.cs
- DelegatedStream.cs
- CrossSiteScriptingValidation.cs
- _ConnectionGroup.cs
- OptimizerPatterns.cs
- ImageKeyConverter.cs
- streamingZipPartStream.cs
- DiagnosticTraceRecords.cs
- MatrixCamera.cs
- GAC.cs
- BindingGraph.cs
- SmtpReplyReader.cs
- IteratorDescriptor.cs
- DataTableMappingCollection.cs
- XPathExpr.cs
- initElementDictionary.cs
- XamlTemplateSerializer.cs
- DependencySource.cs
- DateTimePicker.cs
- TextMetrics.cs
- DispatcherHooks.cs
- XmlSchemaElement.cs