隐式类型构造函数与显式类型构造函数有何不同?

时间:2015-02-18 10:38:10

标签: c# oop clr

public class ImplicitTypeConstructor
{
    public static int implicitInt = 10;
}

public class ExplicitTypeConstructor
{
    public static int explicitInt;
    static ExplicitTypeConstructor()
    {
        explicitInt = 10;
    }
}

这些实现如何相互不同?

0 个答案:

没有答案
相关问题