Beginner help with C#.
So I used a type-safe language before this one, AutoIt and was I speaking to a friend about software development and well he guided me too C#. I've read several tutorials but I guess I haven't taken it in.
Can anyone see what is wrong with this code? I dont seem to understand the errors that are:
Error 1 An object reference is required for the non-static field, method, or property 'PenDriveBackup.Program.iDrive'
'Error 2 An object reference is required for the non-static field, method, or property 'PenDriveBackup.Program.GetDriveList()'
Error 3 'PenDriveBackup.Program.GetDriveList()': not all code paths return a value.
The code is:
Re: Beginner help with C#.
You are trying to call non-static or member function GetDriveList() in a static method. Thats why the error.
|All times are GMT +5.5. The time now is 21:53.|