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

Alexander M. Batishchev abatishchev at godfather.net.ru
Sun Apr 4 16:22:45 EDT 2010


Hi.

Let me to recommend you to try to post your questions on StackOverflow.com
<http://stackoverflow.com/> 

Very interesting and skillful community.

 

Hope nobody is against such 'advertisement' :)

 

-----Original Message-----
From: monodevelop-list-bounces at lists.ximian.com
[mailto:monodevelop-list-bounces at lists.ximian.com] On Behalf Of Connel
Sent: Sunday, April 04, 2010 9:29 PM
To: monodevelop-list at lists.ximian.com
Subject: [MonoDevelop] Im learning to program and I'm getting an error i
cant understand :(

 

 

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.

_______________________________________________

Monodevelop-list mailing list

Monodevelop-list at lists.ximian.com

http://lists.ximian.com/mailman/listinfo/monodevelop-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20100405/32f0b62e/attachment-0001.html 


More information about the Monodevelop-list mailing list