Click here to Skip to main content
15,561,246 members
Home / Discussions / C#
   

C#

 
QuestionOptional property c# Pin
Member 1083628423-Sep-17 22:50
professionalMember 1083628423-Sep-17 22:50 
AnswerRe: Optional property c# Pin
OriginalGriff23-Sep-17 23:45
mveOriginalGriff23-Sep-17 23:45 
AnswerRe: Optional property c# Pin
Richard MacCutchan24-Sep-17 4:17
mveRichard MacCutchan24-Sep-17 4:17 
AnswerRe: Optional property c# Pin
Pete O'Hanlon24-Sep-17 9:20
mvaPete O'Hanlon24-Sep-17 9:20 
AnswerRe: Optional property c# Pin
Ralf Meier24-Sep-17 10:15
mveRalf Meier24-Sep-17 10:15 
AnswerRe: Optional property c# Pin
Gerry Schmitz24-Sep-17 18:17
mveGerry Schmitz24-Sep-17 18:17 
GeneralRe: Optional property c# Pin
Karthik_Mahalingam25-Sep-17 20:54
professionalKarthik_Mahalingam25-Sep-17 20:54 
AnswerRe: Optional property c# Pin
BenScharbach14-Oct-17 10:08
BenScharbach14-Oct-17 10:08 
I would add the optional property in an Interface. Then you inherit the Interface you want to apply optional methods or properties.

For example;

C#
public interface IExtraProperty
{
     // Something like this
     public int ExtraPoperty { get;  set; }
}

public class MyClass : IExtraProperty

Ben Scharbach
Temporalwars.Com
YouTube:Ben Scharbach

QuestionError 'not all code paths return a value' Pin
Bootzilla3322-Sep-17 12:07
Bootzilla3322-Sep-17 12:07 
AnswerRe: Error 'not all code paths return a value' Pin
Pete O'Hanlon22-Sep-17 13:08
mvaPete O'Hanlon22-Sep-17 13:08 
GeneralRe: Error 'not all code paths return a value' Pin
BenScharbach14-Oct-17 10:11
BenScharbach14-Oct-17 10:11 
AnswerRe: Error 'not all code paths return a value' Pin
Karthik_Mahalingam25-Sep-17 20:55
professionalKarthik_Mahalingam25-Sep-17 20:55 
SuggestionRe: Error 'not all code paths return a value' Pin
Richard Deeming26-Sep-17 1:55
mveRichard Deeming26-Sep-17 1:55 
GeneralRe: Error 'not all code paths return a value' Pin
Karthik_Mahalingam26-Sep-17 2:12
professionalKarthik_Mahalingam26-Sep-17 2:12 
GeneralRe: Error 'not all code paths return a value' Pin
Richard Deeming26-Sep-17 2:14
mveRichard Deeming26-Sep-17 2:14 
GeneralRe: Error 'not all code paths return a value' Pin
Karthik_Mahalingam26-Sep-17 2:21
professionalKarthik_Mahalingam26-Sep-17 2:21 
AnswerRe: Error 'not all code paths return a value' Pin
Paul_Williams19-Oct-17 5:54
Paul_Williams19-Oct-17 5:54 
QuestionRead MS Access Code Files Using C# Pin
Kevin Marois22-Sep-17 8:20
professionalKevin Marois22-Sep-17 8:20 
AnswerRe: Read MS Access Code Files Using C# Pin
jschell22-Sep-17 9:47
jschell22-Sep-17 9:47 
GeneralRe: Read MS Access Code Files Using C# Pin
Kevin Marois22-Sep-17 10:06
professionalKevin Marois22-Sep-17 10:06 
GeneralRe: Read MS Access Code Files Using C# Pin
enhzflep22-Sep-17 11:47
enhzflep22-Sep-17 11:47 
GeneralRe: Read MS Access Code Files Using C# Pin
Kevin Marois22-Sep-17 12:49
professionalKevin Marois22-Sep-17 12:49 
GeneralRe: Read MS Access Code Files Using C# Pin
jschell26-Sep-17 7:11
jschell26-Sep-17 7:11 
GeneralRe: Read MS Access Code Files Using C# Pin
jschell26-Sep-17 7:08
jschell26-Sep-17 7:08 
AnswerRe: Read MS Access Code Files Using C# Pin
Joan M23-Sep-17 23:53
professionalJoan M23-Sep-17 23:53 

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.