Hi.
Could you tell me - what is wrong here -
public class MAP
{
public string MAP(string FilePath)
{
FileStream fs;
try { fs = new FileStream(FilePath, FileMode.Open); }
catch (FileNotFoundException exp) { return exp.Message; }
catch { return "Не удаётся открыть файл"; }
return "all right!";
}
}
compiler "says" that -
Error 1 'MAP': member names cannot be the same as their enclosing type
but,as I know - that constructor name should be the same as the name of the class....
thanks in advance )