sedj
Programmer
- Aug 6, 2002
- 5,610
Hello,
sorry, crap question, but in the o'reilly nutshell book C#, it names a method as -- "FileIno.Name{get}" ... whats the 'get' about ?! If I call FileIno.Name() - it throws a compiler error ....
I try
<code>
FileInfo fi = new FileInfo("C:\readme.txt"
Console.Write(fi.Name());
</code>
and get ::
<code>
Hello.cs(13,19): error CS0118: 'System.IO.FileSys
'property' where a 'method' was expected</code>
Any ideas ?
sorry, crap question, but in the o'reilly nutshell book C#, it names a method as -- "FileIno.Name{get}" ... whats the 'get' about ?! If I call FileIno.Name() - it throws a compiler error ....
I try
<code>
FileInfo fi = new FileInfo("C:\readme.txt"
Console.Write(fi.Name());
</code>
and get ::
<code>
Hello.cs(13,19): error CS0118: 'System.IO.FileSys
'property' where a 'method' was expected</code>
Any ideas ?