comboBox1.DataSource = Enum.GetNames(typeof(FontStyle));
comboBox2.DataSource = Enum.GetValues(typeof(FontStyle));上面这两句话的实现是一样的,但有什么不同呢??
comboBox2.DataSource = Enum.GetValues(typeof(FontStyle));上面这两句话的实现是一样的,但有什么不同呢??
FontStyle[] _FontStyleList =(FontStyle[]) Enum.GetValues(typeof(FontStyle));是这样的..
{
x=0,
y,
}Enum.GetNames()返回的是 : x y
Enum.GetValues() 返回的是:0 1