Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ScalarConstant.cs
- ConfigXmlCDataSection.cs
- Parser.cs
- ReadingWritingEntityEventArgs.cs
- Accessible.cs
- Metafile.cs
- EventTrigger.cs
- DbProviderFactories.cs
- EdmScalarPropertyAttribute.cs
- AnnotationHelper.cs
- SocketElement.cs
- XmlSchemaAttributeGroupRef.cs
- WsatServiceAddress.cs
- ConstraintConverter.cs
- ClaimTypeElement.cs
- SystemPens.cs
- CompletedAsyncResult.cs
- DesignerObjectListAdapter.cs
- RectAnimationUsingKeyFrames.cs
- ReferencedCollectionType.cs
- BrowserDefinitionCollection.cs
- NotifyParentPropertyAttribute.cs
- SqlStatistics.cs
- FlowDocumentPaginator.cs
- MetadataElement.cs
- PrintingPermission.cs
- TextOnlyOutput.cs
- CultureTableRecord.cs
- LeftCellWrapper.cs
- PropertyGroupDescription.cs
- TextDecorationLocationValidation.cs
- ProjectionCamera.cs
- QueryConverter.cs
- MetadataItemCollectionFactory.cs
- PropertyRef.cs
- DataObjectAttribute.cs
- TreeNode.cs
- HyperLinkColumn.cs
- XmlNotation.cs
- ResourcesBuildProvider.cs
- DataGridViewCellConverter.cs
- DocumentXPathNavigator.cs
- Grid.cs
- ToolStripTextBox.cs
- ToolStripDropDownClosedEventArgs.cs
- SmiContext.cs
- ToolStripDesignerUtils.cs
- SHA384Managed.cs
- CodeDelegateInvokeExpression.cs
- EmbeddedMailObject.cs
- LockedAssemblyCache.cs
- HatchBrush.cs
- WebPartConnectionsCancelEventArgs.cs
- OSFeature.cs
- DataGridViewSelectedCellCollection.cs
- UnsafeNativeMethods.cs
- HttpRuntime.cs
- RawTextInputReport.cs
- DataListItem.cs
- TabControlToolboxItem.cs
- RoleGroup.cs
- StringReader.cs
- AttributeQuery.cs
- ConfigPathUtility.cs
- DataListCommandEventArgs.cs
- CodeArrayIndexerExpression.cs
- DataDocumentXPathNavigator.cs
- HttpContext.cs
- BooleanExpr.cs
- LinearGradientBrush.cs
- MtomMessageEncodingElement.cs
- SQLInt16.cs
- ListItemParagraph.cs
- SQLRoleProvider.cs
- TargetConverter.cs
- _NestedMultipleAsyncResult.cs
- MenuItemStyle.cs
- clipboard.cs
- QuaternionRotation3D.cs
- SystemWebCachingSectionGroup.cs
- XmlSchemaException.cs
- VoiceObjectToken.cs
- WebControlsSection.cs
- EntityStoreSchemaGenerator.cs
- HyperLink.cs
- DataServiceKeyAttribute.cs
- TriState.cs
- SafeNativeMethods.cs
- AvTrace.cs
- NetworkInformationException.cs
- ErrorsHelper.cs
- MemoryFailPoint.cs
- RichTextBoxConstants.cs
- WhitespaceSignificantCollectionAttribute.cs
- EtwTrace.cs
- WindowsTokenRoleProvider.cs
- DbProviderManifest.cs
- TdsParserSessionPool.cs
- XPathAncestorIterator.cs
- PrimitiveSchema.cs