IM使用下面的方法的FontFamily和大小的方法
private void FontChange(FontFamily f, int Syze)
{
Font font = new Font (f , Syze);
}
然后,如果我想使用 我打电话
FontChange("Consolas",11);
这给了我错误的方法:
The best overloaded method match for 'ContactList.Main.FontChange(System.Drawing.FontFamily, int)' has some invalid arguments.
考虑调用第二个参数'size'而不是'Syze';它都符合常规约定(参数名称通常不会在C#中大写)并拼写正确。 :) –