Click here to Skip to main content
15,891,204 members
Home / Discussions / C#
   

C#

 
GeneralRe: Download files Pin
OriginalGriff29-May-19 3:14
mveOriginalGriff29-May-19 3:14 
GeneralRe: Download files Pin
Pete O'Hanlon29-May-19 3:36
mvePete O'Hanlon29-May-19 3:36 
Questiondownload files Pin
Member 1447263829-May-19 1:30
Member 1447263829-May-19 1:30 
QuestionRe: download files Pin
Richard MacCutchan28-May-19 21:11
mveRichard MacCutchan28-May-19 21:11 
AnswerRe: download files Pin
Member 1447263829-May-19 0:23
Member 1447263829-May-19 0:23 
GeneralRe: download files Pin
Richard MacCutchan29-May-19 1:35
mveRichard MacCutchan29-May-19 1:35 
AnswerRe: download files Pin
Richard Deeming29-May-19 0:42
mveRichard Deeming29-May-19 0:42 
QuestionC# using get set. Why is this failing? Pin
Brian_TheLion28-May-19 19:52
Brian_TheLion28-May-19 19:52 
I can't see the reason why this does not work. There is no clear indication what the error is.

C#
public int CurrentHitPoints { get; set; }
        public int MaximumHitPoints { get; set; }
        public int Gold
        {
            get
               {
                 return Gold;
               }

            set
            {
                if (value == 20)
               {
                  value += 5;
                  Gold = value;
               }
            }
        }
        public int ExperiencePoints { get; set; }
        public int Level { get; set; }


Brian

modified 29-May-19 15:12pm.

AnswerRe: C# using get set. Why is this failing? Pin
Member 1356638328-May-19 20:14
Member 1356638328-May-19 20:14 
GeneralRe: C# using get set. Why is this failing? Pin
Brian_TheLion28-May-19 20:22
Brian_TheLion28-May-19 20:22 
GeneralRe: C# using get set. Why is this failing? Pin
Member 1356638328-May-19 20:31
Member 1356638328-May-19 20:31 
GeneralRe: C# using get set. Why is this failing? Pin
Brian_TheLion28-May-19 20:37
Brian_TheLion28-May-19 20:37 
AnswerRe: C# using get set. Why is this failing? Pin
lmoelleb28-May-19 20:39
lmoelleb28-May-19 20:39 
GeneralRe: C# using get set. Why is this failing? Pin
Brian_TheLion29-May-19 0:24
Brian_TheLion29-May-19 0:24 
GeneralRe: C# using get set. Why is this failing? Pin
lmoelleb29-May-19 2:27
lmoelleb29-May-19 2:27 
AnswerRe: C# using get set. Why is this failing? Pin
Member 1356638329-May-19 5:30
Member 1356638329-May-19 5:30 
GeneralRe: C# using get set. Why is this failing? Pin
Dave Kreskowiak29-May-19 7:18
mveDave Kreskowiak29-May-19 7:18 
GeneralRe: C# using get set. Why is this failing? Pin
Brian_TheLion29-May-19 14:50
Brian_TheLion29-May-19 14:50 
GeneralRe: C# using get set. Why is this failing? Pin
Dave Kreskowiak29-May-19 16:23
mveDave Kreskowiak29-May-19 16:23 
GeneralRe: C# using get set. Why is this failing? Pin
kalberts29-May-19 4:38
kalberts29-May-19 4:38 
GeneralRe: C# using get set. Why is this failing? Pin
Richard MacCutchan29-May-19 5:58
mveRichard MacCutchan29-May-19 5:58 
GeneralRe: C# using get set. Why is this failing? Pin
Brian_TheLion29-May-19 14:44
Brian_TheLion29-May-19 14:44 
GeneralRe: C# using get set. Why is this failing? Pin
Dave Kreskowiak29-May-19 16:26
mveDave Kreskowiak29-May-19 16:26 
GeneralRe: C# using get set. Why is this failing? Pin
Brian_TheLion29-May-19 18:23
Brian_TheLion29-May-19 18:23 
GeneralRe: C# using get set. Why is this failing? Pin
lmoelleb2-Jun-19 22:46
lmoelleb2-Jun-19 22:46 

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.