public class CodeBlock
CodeBlock(String, String) | Represents a block of code with its corresponding programming language and line number information. |
CodeBlock(String, String, Int32) | Represents a block of code with its corresponding programming language and line number information. |
Code | Gets or sets the content of the code block as a string. |
Language | Gets or sets the programming language associated with the code block. |
LineNumber | Gets or sets the line number where the code block appears in the source text. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
ToString |
Returns a string representation of the CodeBlock object, including the programming language
and the corresponding code in a formatted manner.
(Overrides ObjectToString) |