Click or drag to resize
BlockCommentFormat Class
This class defines the basic structure of a "block comment" in a language.
Inheritance Hierarchy
SystemObject
  Tvl.VisualStudio.Text.CommenterCommentFormat
    Tvl.VisualStudio.Text.CommenterBlockCommentFormat

Namespace: Tvl.VisualStudio.Text.Commenter
Assembly: Tvl.VisualStudio.Commenter.Utility.10 (in Tvl.VisualStudio.Commenter.Utility.10.dll) Version: 1.0.0.0
Syntax
public class BlockCommentFormat : CommentFormat

The BlockCommentFormat type exposes the following members.

Constructors
  NameDescription
Public methodBlockCommentFormat(String, String)
Initializes a new instance of the BlockCommentFormat class with the specified prefix and suffix. The AllowNesting property is initialized to .
Public methodBlockCommentFormat(String, String, Boolean)
Initializes a new instance of the BlockCommentFormat class with the specified prefix, suffix, and value indicating whether block comments in this format may appear nested in the source code.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyAllowNesting
Gets a value indicating whether block comments in this format may be nested.
Public propertyEndText
Gets the suffix for a block comment in this format.
Public propertyStartText
Gets the prefix for a block comment in this format.
Top
Remarks

For the purpose of this implementation, a block comment is a comment that extends from a predefined starting prefix to a predefined ending suffix. The AllowNesting property specifies whether the language allows block comments in this format to be nested.

Note Note

The exact semantics of a block comment are not dictated by this data structure. The implementation of ICommenter provided by an extension for a particular content type is responsible for the behavior of comments.

Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also