Is a static member variable common for all C# generic instantiations?

后端 未结 4 2032
半阙折子戏
半阙折子戏 2020-12-11 15:11

In C# I have a generic class:

public class MyGeneric where ParameterClass: MyGenericParameterClass, new() {
    public static int Varia         


        
4条回答
  •  鱼传尺愫
    2020-12-11 15:45

    MyGeneric.Variable
    MyGeneric.Variable
    

    These two are different static variables treated like separate classes.

提交回复
热议问题