MethodKind Enum

Definition

Enumeration for possible kinds of method symbols.

C#
public enum MethodKind
Inheritance
MethodKind

Fields

Name Value Description
AnonymousFunction 0

An anonymous method or lambda expression

LambdaMethod 0

An anonymous method or lambda expression

Constructor 1

Method is a constructor.

Conversion 2

Method is a conversion.

DelegateInvoke 3

Method is a delegate invoke.

Destructor 4

Method is a destructor.

EventAdd 5

Method is an event add.

EventRaise 6

Method is an event raise.

EventRemove 7

Method is an event remove.

ExplicitInterfaceImplementation 8

Method is an explicit interface implementation.

UserDefinedOperator 9

Method is an operator.

Ordinary 10

Method is an ordinary method.

PropertyGet 11

Method is a property get.

PropertySet 12

Method is a property set.

ReducedExtension 13

An extension method with the "this" parameter removed.

SharedConstructor 14

Method is a static constructor.

StaticConstructor 14

Method is a static constructor.

BuiltinOperator 15

A built-in operator.

DeclareMethod 16

Declare Sub or Function.

LocalFunction 17

Method is declared inside of another method.

FunctionPointerSignature 18

Method represents the signature of a function pointer type.

Applies to

Toode Versioonid
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, 4.12.2, 4.13.0