エラー1非静的フィールド、メソッド、またはプロパティにはオブジェクト参照が必要です'ConsoleApplication_FileTest.Program.GetAverageSalary(string)' C:\ Users \ Dawn \ document \ visual studio 11 \ Projects \ ConsoleApplication_FileTest \ ConsoleApplication_FileTest \ Program.cs 98 24 ConsoleApplication_FileTest
static void Main(string[] args)
{
Dictionary<string, double> averages = new Dictionary<string, double>();
string filename = "c:\\test.txt";
averages = GetAverageSalary(filename)
}
=====================
Dictionary<string, double> GetAverageSalary(string filename)
{
...