Share via


IDebugGenericFieldDefinition::TypeParamCount

Retrieves the number of type parameters that are associated with the generic field.

HRESULT TypeParamCount(
   ULONG32* pcParams
);
int TypeParamCount(
   ref uint pcParams
);

Parameters

  • pcParams
    [in, out] Number of type parameters.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

If List<T>, this method returns 1, and, if List<T1,T2>, this method returns 2. This method returns 0 if there are no type parameters.

See Also

Reference

IDebugGenericFieldDefinition