Hi,
I am getting following error in my code:
error:
'WcfClient.Client.ConsultationClientWCF(ref int)': not all code paths return a value
code:
Java |
Hi,
I am getting following error in my code:
error:
'WcfClient.Client.ConsultationClientWCF(ref int)': not all code paths return a value
Java |
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
PJ MartinsRank #2,548 · 548 reputationPosted May 29, 2010, 10:39 PM EDT
public retour ConsultationClientWCF( ref int ID_CLIENT)
{
Service1 ser = new Service1();
ser.ConsultationClient(ID_CLIENT);
if ( ser.ConsultationClient(ID_CLIENT).Equals(0)){
retour rt = new retour();
rt.succes = 0;
rt.msgsucces = "opération réeussite";
return rt;
}
else if (ser.ConsultationClient(ID_CLIENT).Equals(-1)){
retour ht = new retour();
ht.echec = -1;
ht.msgechec = "Operation échoué";
return ht;
}
return null;
}