閱讀英文

共用方式為


MethodKind 列舉

定義

可能的方法符號類型列舉。

C#
public enum MethodKind
繼承
MethodKind

欄位

AnonymousFunction 0

匿名方法或 Lambda 運算式

BuiltinOperator 15

內建運算子。

Constructor 1

方法是建構函式。

Conversion 2

方法是轉換。

DeclareMethod 16

宣告子或函式。

DelegateInvoke 3

方法是委派叫用。

Destructor 4

方法是解構函式。

EventAdd 5

方法是事件新增。

EventRaise 6

方法是引發事件。

EventRemove 7

方法是事件移除。

ExplicitInterfaceImplementation 8

方法是明確的介面實作。

FunctionPointerSignature 18

方法代表函式指標類型的簽章。

LambdaMethod 0

匿名方法或 Lambda 運算式

LocalFunction 17

方法會在另一個方法內宣告。

Ordinary 10

方法是一般方法。

PropertyGet 11

方法是屬性 get。

PropertySet 12

方法是屬性集。

ReducedExtension 13

已移除 「this」 參數的擴充方法。

SharedConstructor 14

方法是靜態建構函式。

StaticConstructor 14

方法是靜態建構函式。

UserDefinedOperator 9

方法是運算子。

適用於

產品 版本
Roslyn 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0