我使用Height
为所有Foo
的成员指定高度。如下所示:
public class Foo<T>
{
public static int FoosHeight;
}
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
Foo<???>.FoosHeight = 50; // DO I Set "object" here?
}
}
同样的情况也存在于VB.NET中。