且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

默认情况下,泛型类型?

更新时间:2022-03-16 22:33:39

没有。没有为泛型类型在C#中的默认类型的选项。

No. There is no option for default types on generic types in C#.

您第二个例子是经常***选项可用,如果你需要这种行为。

Your second example is often the "best" option available, if you need this behavior.