MethodSignature<TType> MethodSignature<TType> MethodSignature<TType> MethodSignature<TType> Struct

定義

表示方法 (定義、參考或獨立) 或屬性簽章。Represents a method (definition, reference, or standalone) or property signature. 針對屬性,簽章會符合具特殊 SignatureHeader 的 getter。In the case of properties, the signature matches that of a getter with a distinguishing SignatureHeader.

generic <typename TType>
public value class MethodSignature
public struct MethodSignature<TType>
type MethodSignature<'ype> = struct
Public Structure MethodSignature(Of TType)

類型參數

TType

方法類型。The method type.

繼承
MethodSignature<TType>MethodSignature<TType>MethodSignature<TType>MethodSignature<TType>

建構函式

MethodSignature<TType>(SignatureHeader, TType, Int32, Int32, ImmutableArray<TType>) MethodSignature<TType>(SignatureHeader, TType, Int32, Int32, ImmutableArray<TType>) MethodSignature<TType>(SignatureHeader, TType, Int32, Int32, ImmutableArray<TType>) MethodSignature<TType>(SignatureHeader, TType, Int32, Int32, ImmutableArray<TType>)

使用指定的標頭、傳回型別及參數資訊,將 MethodSignature<TType> 結構的新執行個體初始化。Initializes a new instance of the MethodSignature<TType> structure using the specified header, return type, and parameter information.

屬性

GenericParameterCount GenericParameterCount GenericParameterCount GenericParameterCount

取得方法的泛型型別參數數目。Gets the number of generic type parameters for the method.

Header Header Header Header

取得簽章的前置位元組資訊 (種類、呼叫慣例、旗標)。Gets the information in the leading byte of the signature (kind, calling convention, flags).

ParameterTypes ParameterTypes ParameterTypes ParameterTypes

取得方法的參數類型。Gets the method's parameter types.

RequiredParameterCount RequiredParameterCount RequiredParameterCount RequiredParameterCount

取得方法所需的參數數目。Gets the number of parameters that are required for the method.

ReturnType ReturnType ReturnType ReturnType

取得方法的傳回型別。Gets the return type of the method.

適用於