Click here to Skip to main content
14,447,535 members
   

C#

 
QuestionC# using get set. Why is this failing? Pin
Brian_TheLion28-May-19 20:52
MemberBrian_TheLion28-May-19 20:52 
AnswerRe: C# using get set. Why is this failing? Pin
Member 1356638328-May-19 21:14
MemberMember 1356638328-May-19 21:14 
GeneralRe: C# using get set. Why is this failing? Pin
Brian_TheLion28-May-19 21:22
MemberBrian_TheLion28-May-19 21:22 
GeneralRe: C# using get set. Why is this failing? Pin
Member 1356638328-May-19 21:31
MemberMember 1356638328-May-19 21:31 
GeneralRe: C# using get set. Why is this failing? Pin
Brian_TheLion28-May-19 21:37
MemberBrian_TheLion28-May-19 21:37 
AnswerRe: C# using get set. Why is this failing? Pin
lmoelleb28-May-19 21:39
Memberlmoelleb28-May-19 21:39 
GeneralRe: C# using get set. Why is this failing? Pin
Brian_TheLion29-May-19 1:24
MemberBrian_TheLion29-May-19 1:24 
GeneralRe: C# using get set. Why is this failing? Pin
lmoelleb29-May-19 3:27
Memberlmoelleb29-May-19 3:27 
Rule number 2 when troubleshooting (rule number one is "use the debugger") is not to assume anything. Assuming your debugger won't show you what is wrong is not the right approach.

What would happen if you had spend 10 seconds setting a breakpoint in the getter and setter and then kept pressing F11: You would see your code repeatedly call itself, while the callstack keeps growing one line each time it calls itself.
AnswerRe: C# using get set. Why is this failing? Pin
Member 1356638329-May-19 6:30
MemberMember 1356638329-May-19 6:30 
GeneralRe: C# using get set. Why is this failing? Pin
Dave Kreskowiak29-May-19 8:18
mveDave Kreskowiak29-May-19 8:18 
GeneralRe: C# using get set. Why is this failing? Pin
Brian_TheLion29-May-19 15:50
MemberBrian_TheLion29-May-19 15:50 
GeneralRe: C# using get set. Why is this failing? Pin
Dave Kreskowiak29-May-19 17:23
mveDave Kreskowiak29-May-19 17:23 
GeneralRe: C# using get set. Why is this failing? Pin
Member 798912229-May-19 5:38
MemberMember 798912229-May-19 5:38 
GeneralRe: C# using get set. Why is this failing? Pin
Richard MacCutchan29-May-19 6:58
communityengineerRichard MacCutchan29-May-19 6:58 
GeneralRe: C# using get set. Why is this failing? Pin
Brian_TheLion29-May-19 15:44
MemberBrian_TheLion29-May-19 15:44 
GeneralRe: C# using get set. Why is this failing? Pin
Dave Kreskowiak29-May-19 17:26
mveDave Kreskowiak29-May-19 17:26 
GeneralRe: C# using get set. Why is this failing? Pin
Brian_TheLion29-May-19 19:23
MemberBrian_TheLion29-May-19 19:23 
GeneralRe: C# using get set. Why is this failing? Pin
lmoelleb2-Jun-19 23:46
Memberlmoelleb2-Jun-19 23:46 
AnswerRe: C# using get set. Why is this failing? Pin
OriginalGriff28-May-19 21:41
communityengineerOriginalGriff28-May-19 21:41 
GeneralRe: C# using get set. Why is this failing? Pin
Brian_TheLion29-May-19 1:36
MemberBrian_TheLion29-May-19 1:36 
GeneralRe: C# using get set. Why is this failing? Pin
Pete O'Hanlon29-May-19 1:43
communityengineerPete O'Hanlon29-May-19 1:43 
GeneralRe: C# using get set. Why is this failing? Pin
Brian_TheLion29-May-19 15:41
MemberBrian_TheLion29-May-19 15:41 
GeneralRe: C# using get set. Why is this failing? Pin
Pete O'Hanlon29-May-19 19:57
communityengineerPete O'Hanlon29-May-19 19:57 
GeneralRe: C# using get set. Why is this failing? Pin
Brian_TheLion29-May-19 20:55
MemberBrian_TheLion29-May-19 20:55 
GeneralRe: C# using get set. Why is this failing? Pin
OriginalGriff29-May-19 2:11
communityengineerOriginalGriff29-May-19 2:11 

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.