How to distinguish MethodBase in generics

前端 未结 2 615
旧巷少年郎
旧巷少年郎 2021-01-23 06:12

I have a cache based on

Dictionary

The key is rendered from MethodBase.GetCurrentMethod. Everything worked fine unti

2条回答
  •  忘掉有多难
    2021-01-23 06:59

    This is not possible; a generic method has a single MethodBase; it doesn't have one MethodBase per set of generic arguments.

提交回复
热议问题