<PackageReference Include="System.Reflection.Metadata" Version="11.0.0-preview.4.26230.115" />

System.Reflection.Metadata.MethodSignature<TType>

public struct MethodSignature<TType>
Represents a method (definition, reference, or standalone) or property signature. In the case of properties, the signature matches that of a getter with a distinguishing SignatureHeader.
public int GenericParameterCount { get; }

Gets the number of generic type parameters for the method.

public SignatureHeader Header { get; }

Gets the information in the leading byte of the signature (kind, calling convention, flags).

public ImmutableArray<TType> ParameterTypes { get; }

Gets the method's parameter types.

public int RequiredParameterCount { get; }

Gets the number of parameters that are required for the method.

public TType ReturnType { get; }

Gets the return type of the method.

public MethodSignature(SignatureHeader header, TType returnType, int requiredParameterCount, int genericParameterCount, ImmutableArray<TType> parameterTypes)

Initializes a new instance of the MethodSignature<T> structure using the specified header, return type, and parameter information.