在 Visual Studio 中的 C# 泛型 Class/Method 上设置函数断点?

Set a Function Breakpoint on a C# Generic Class/Method in Visual Studio?

如何在通用 class/method 上设置 Function Breakpoint

我可能正在尝试找出要使用的语法。这是我要设置的 class/method:-

namespace MyCustom.SpecialNS
{
  public class SomeGenericConditionClass<T> : BaseConditionNS.WhenCondition<T> where T : BaseRuleNS.RuleContext
  {

    protected override bool Execute(T ruleContextParam)
    {
        string hello = "Hello. Set Breakpoint here!";
        return true;
    }
  }
}

仅供参考,我正在尝试调试第三方 dll,我在其中设置了其他方法来使用函数断点调试常规具体 classes/methods。 即我可以设置

MyCustom.SpecialNS.SimpleConcreteClass.BasicExecute(MyCustomAttrNS.MyAttributeType)

就会成功破解。 但是对于泛型,我不确定类型 T 是什么,或者正确设置函数断点的语法是什么,而且它是第三方 DLL,所以我不能只打开代码并单击以创建断点.

我试过了

MyCustom.SpecialNS.SomeGenericConditionClass.Execute

MyCustom.SpecialNS.SomeGenericConditionClass<T>.Execute<T>

还有许多其他变体,但我一无所获。

有什么想法吗?

SomeGenericConditionClass<T>.Execute 适合我。 (从我上面的评论中提升。)