Click here to Skip to main content
15,897,891 members
Home / Discussions / C#
   

C#

 
GeneralRe: REST Web API Query JSON Deserialization Pin
FMG Tech18-Sep-15 15:16
FMG Tech18-Sep-15 15:16 
QuestionEdit SVG text elements of XHTML page with C# Pin
Bartosz Jarmuż17-Sep-15 4:16
Bartosz Jarmuż17-Sep-15 4:16 
Questionc# RSA security Pin
Member 1198796116-Sep-15 20:11
Member 1198796116-Sep-15 20:11 
AnswerRe: c# RSA security Pin
Eddy Vluggen16-Sep-15 22:54
professionalEddy Vluggen16-Sep-15 22:54 
QuestionIn visual studio do you know what the name of this control ? Pin
Member 245846716-Sep-15 16:29
Member 245846716-Sep-15 16:29 
AnswerRe: In visual studio do you know what the name of this control ? Pin
Richard MacCutchan16-Sep-15 21:43
mveRichard MacCutchan16-Sep-15 21:43 
AnswerRe: In visual studio do you know what the name of this control ? Pin
Eddy Vluggen16-Sep-15 22:50
professionalEddy Vluggen16-Sep-15 22:50 
AnswerRe: In visual studio do you know what the name of this control ? Pin
BillWoodruff17-Sep-15 0:11
professionalBillWoodruff17-Sep-15 0:11 
GeneralRe: In visual studio do you know what the name of this control ? Pin
Member 245846717-Sep-15 23:26
Member 245846717-Sep-15 23:26 
AnswerRe: In visual studio do you know what the name of this control ? Pin
ngoj17-Sep-15 2:43
ngoj17-Sep-15 2:43 
GeneralRe: In visual studio do you know what the name of this control ? Pin
Pete O'Hanlon17-Sep-15 2:55
mvePete O'Hanlon17-Sep-15 2:55 
GeneralRe: In visual studio do you know what the name of this control ? Pin
ngoj17-Sep-15 3:14
ngoj17-Sep-15 3:14 
QuestionDeclarations using var Pin
JBHowl16-Sep-15 1:54
JBHowl16-Sep-15 1:54 
AnswerRe: Declarations using var Pin
Eddy Vluggen16-Sep-15 2:16
professionalEddy Vluggen16-Sep-15 2:16 
AnswerRe: Declarations using var PinPopular
Richard Deeming16-Sep-15 2:29
mveRichard Deeming16-Sep-15 2:29 
GeneralRe: Declarations using var Pin
Eddy Vluggen16-Sep-15 9:32
professionalEddy Vluggen16-Sep-15 9:32 
GeneralRe: Declarations using var Pin
PIEBALDconsult16-Sep-15 11:53
mvePIEBALDconsult16-Sep-15 11:53 
AnswerRe: Declarations using var Pin
PIEBALDconsult16-Sep-15 11:52
mvePIEBALDconsult16-Sep-15 11:52 
GeneralRe: Declarations using var Pin
Rob Philpott16-Sep-15 23:05
Rob Philpott16-Sep-15 23:05 
GeneralRe: Declarations using var Pin
Richard Deeming17-Sep-15 1:53
mveRichard Deeming17-Sep-15 1:53 
AnswerRe: Declarations using var Pin
JBHowl17-Sep-15 2:15
JBHowl17-Sep-15 2:15 
GeneralRe: Declarations using var Pin
Pete O'Hanlon17-Sep-15 2:17
mvePete O'Hanlon17-Sep-15 2:17 
QuestionHow to declare and define a method returns a list? Pin
Member 1198763615-Sep-15 21:36
Member 1198763615-Sep-15 21:36 
AnswerRe: How to declare and define a method returns a list? Pin
OriginalGriff15-Sep-15 22:15
mveOriginalGriff15-Sep-15 22:15 
"//is this correct???"
Um... no.
There are a couple of problems with your code here, and the major ones are that you don't seem to have sat down and worked out what you are trying to do before leaping into code, and that you haven't even tried to compile it. It won't compile, by the way - C# is case sensitive, so
C#
public list<IEmployee> ViewAllEmployees()
Is not the same as
C#
public List<IEmployee> ViewAllEmployees()

When you add that the Batch class doesn't know what iemplist is because it isn't a member of the class, and that you don't define an interface IEmployee at all, it all starts to fall apart.

What it looks like is that you have grabbed chunks of code at random from the internet and chucked them into a single program and hoped it all works. That's not a good strategy - it's unlikely to work, and will take a lot more effort to bodge into doing something like the task you have been assigned that doing it yourself would have been in the first place. (It's a bit like trying to build a car by grabbing parts at random from a car breakers shelves, and trying to bolt them all together: unless the doors come from the same make and model as the chassis they just aren't going to shut properly without some serious attention from a big hammer. And then the windows won't fit either, so...)

So stop.
Copy that to somewhere safe, and start again. Look at your task, and work out what you need - and I don't think the Batch class is likely to be in that.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

AnswerRe: How to declare and define a method returns a list? Pin
BillWoodruff16-Sep-15 8:01
professionalBillWoodruff16-Sep-15 8:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.