Click here to Skip to main content
15,867,568 members
Home / Discussions / C#
   

C#

 
AnswerRe: Optional property c# Pin
OriginalGriff23-Sep-17 22:45
mveOriginalGriff23-Sep-17 22:45 
AnswerRe: Optional property c# Pin
Richard MacCutchan24-Sep-17 3:17
mveRichard MacCutchan24-Sep-17 3:17 
AnswerRe: Optional property c# Pin
Pete O'Hanlon24-Sep-17 8:20
subeditorPete O'Hanlon24-Sep-17 8:20 
AnswerRe: Optional property c# Pin
Ralf Meier24-Sep-17 9:15
professionalRalf Meier24-Sep-17 9:15 
AnswerRe: Optional property c# Pin
Gerry Schmitz24-Sep-17 17:17
mveGerry Schmitz24-Sep-17 17:17 
GeneralRe: Optional property c# Pin
Karthik_Mahalingam25-Sep-17 19:54
professionalKarthik_Mahalingam25-Sep-17 19:54 
AnswerRe: Optional property c# Pin
BenScharbach14-Oct-17 9:08
BenScharbach14-Oct-17 9:08 
QuestionError 'not all code paths return a value' Pin
Bootzilla3322-Sep-17 11:07
Bootzilla3322-Sep-17 11:07 
Getting errors in this code on 'ToXml':

C#
public class EventCode
   {
       public static string ToXml(Soap.EventCode.EvCodes value)
       {
           switch (value)
           {
               case Soap.EventCode.EvCodes.DispatchedForDelivery:
               case Soap.EventCode.EvCodes.Delivered:
                   return "OD";
               case Soap.EventCode.EvCodes.DepartedFromTerminal:
                   return "L1";
           }
       }
   }


What am I doing incorrectly so I can fix this error:
AnswerRe: Error 'not all code paths return a value' Pin
Pete O'Hanlon22-Sep-17 12:08
subeditorPete O'Hanlon22-Sep-17 12:08 
GeneralRe: Error 'not all code paths return a value' Pin
BenScharbach14-Oct-17 9:11
BenScharbach14-Oct-17 9:11 
AnswerRe: Error 'not all code paths return a value' Pin
Karthik_Mahalingam25-Sep-17 19:55
professionalKarthik_Mahalingam25-Sep-17 19:55 
SuggestionRe: Error 'not all code paths return a value' Pin
Richard Deeming26-Sep-17 0:55
mveRichard Deeming26-Sep-17 0:55 
GeneralRe: Error 'not all code paths return a value' Pin
Karthik_Mahalingam26-Sep-17 1:12
professionalKarthik_Mahalingam26-Sep-17 1:12 
GeneralRe: Error 'not all code paths return a value' Pin
Richard Deeming26-Sep-17 1:14
mveRichard Deeming26-Sep-17 1:14 
GeneralRe: Error 'not all code paths return a value' Pin
Karthik_Mahalingam26-Sep-17 1:21
professionalKarthik_Mahalingam26-Sep-17 1:21 
AnswerRe: Error 'not all code paths return a value' Pin
Paul_Williams19-Oct-17 4:54
Paul_Williams19-Oct-17 4:54 
QuestionRead MS Access Code Files Using C# Pin
Kevin Marois22-Sep-17 7:20
professionalKevin Marois22-Sep-17 7:20 
AnswerRe: Read MS Access Code Files Using C# Pin
jschell22-Sep-17 8:47
jschell22-Sep-17 8:47 
GeneralRe: Read MS Access Code Files Using C# Pin
Kevin Marois22-Sep-17 9:06
professionalKevin Marois22-Sep-17 9:06 
GeneralRe: Read MS Access Code Files Using C# Pin
enhzflep22-Sep-17 10:47
enhzflep22-Sep-17 10:47 
GeneralRe: Read MS Access Code Files Using C# Pin
Kevin Marois22-Sep-17 11:49
professionalKevin Marois22-Sep-17 11:49 
GeneralRe: Read MS Access Code Files Using C# Pin
jschell26-Sep-17 6:11
jschell26-Sep-17 6:11 
GeneralRe: Read MS Access Code Files Using C# Pin
jschell26-Sep-17 6:08
jschell26-Sep-17 6:08 
AnswerRe: Read MS Access Code Files Using C# Pin
Joan M23-Sep-17 22:53
professionalJoan M23-Sep-17 22:53 
AnswerRe: Read MS Access Code Files Using C# Pin
Richard MacCutchan24-Sep-17 4:06
mveRichard MacCutchan24-Sep-17 4:06 

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.