[MonoDevelop] Im learning to program and I'm getting an error i cant understand :(

Connel connelhooley at googlemail.com
Sun Apr 4 13:29:12 EDT 2010


Hi I recently purchased a magazine on how to program using Mono in Linux. I
have done a couple of tasks inside the magazine and I am currently trying to
make a program of my own :) anyway I am having trouble using
Path.GetFileName()

MonoDevelop is telling this line is wrong:

//string of just the files name and not its path
string strFileName = Path.GetFileName(strFile);

I get the following error:

/home/connel/Documents/Programming/Projects/Sync-GUI/MainWindow.cs(39,39):
Error CS0119: Expression denotes a `method group', where a `variable',
`value' or `type' was expected (CS0119) (Sync-GUI)

Really sorry if i'm posting this in the wrong place!
thanks :)
-- 
View this message in context: http://n4.nabble.com/Im-learning-to-program-and-I-m-getting-an-error-i-cant-understand-tp1751009p1751009.html
Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.


More information about the Monodevelop-list mailing list