CodeStatement 类

定义

表示从中派生所有代码语句的 abstract 基类。Represents the abstract base class from which all code statements derive.

public ref class CodeStatement : System::CodeDom::CodeObject
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Serializable]
public class CodeStatement : System.CodeDom.CodeObject
type CodeStatement = class
    inherit CodeObject
Public Class CodeStatement
Inherits CodeObject
继承
CodeStatement
派生
属性

注解

CodeStatementSystem.CodeDom命名空间中的代码语句提供抽象基类。CodeStatement provides an abstract base class for code statements within the System.CodeDom namespace.

构造函数

CodeStatement()

初始化 CodeStatement 类的新实例。Initializes a new instance of the CodeStatement class.

属性

EndDirectives

获取包含结束指令的 CodeDirectiveCollection 对象。Gets a CodeDirectiveCollection object that contains end directives.

LinePragma

获取或设置代码语句所在的行。Gets or sets the line on which the code statement occurs.

StartDirectives

获取包含开始指令的 CodeDirectiveCollection 对象。Gets a CodeDirectiveCollection object that contains start directives.

UserData

获取当前对象的用户可定义数据。Gets the user-definable data for the current object.

(继承自 CodeObject)

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅