Click here to Skip to main content
15,885,365 members
Home / Discussions / C#
   

C#

 
QuestionOptional property c# Pin
Member 1083628423-Sep-17 21:50
professionalMember 1083628423-Sep-17 21:50 
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
mvePete O'Hanlon24-Sep-17 8:20 
AnswerRe: Optional property c# Pin
Ralf Meier24-Sep-17 9:15
mveRalf 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 
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 11:07
Bootzilla3322-Sep-17 11:07 
AnswerRe: Error 'not all code paths return a value' Pin
Pete O'Hanlon22-Sep-17 12:08
mvePete 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 

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.