C# - static types cannot be used as type arguments

后端 未结 5 1297
北海茫月
北海茫月 2020-11-28 13:57

I\'ve a generic class, that helps me to do checks on argument values

internal sealed class Argument
    where T : class
{
    private void TraceAndT         


        
5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-28 14:51

    What you are doing wrong is using a static type as a generic type argument.

提交回复
热议问题