ParamKind Enum

Definition

ParamKind enum is used in constructing type GraphNodeIds used in method/property OverloadingParameters. CLR spec allows overloading methods differ by parameter passing (by value vs. by ref), return type, and vararg, so having the parameter types alone is not enough to distinguish all overloaded methods, and the ParamKind enum is used to further distinguish them.

public enum class ParamKind
public enum ParamKind
type ParamKind = 
Public Enum ParamKind
Inheritance
ParamKind

Fields

Default 0

Default passing conversion of the parameter, i.e. pass-by-value.

Ref 1

This parameter is passed by reference.

Return 2

Sometimes we'll add the return type of a method into its OverloadingParameters list to ensure uniqueness of the method Id. In such cases, we'll mark these special parameters as Return.

Applies to