For example, I want to get the sum of a series, how would you go about doing this? I understand that get will "get" what I need from wherever it's being called from and set will "set" the value of what it's getting. But how would you go about putting a loop in this? I realize it's easier to do it in a method, but I also need to understand how this works as well.
C# accessor and Loops
Page 1 of 12 Replies - 210 Views - Last Post: 09 October 2012 - 07:33 PM
Replies To: C# accessor and Loops
#2
Re: C# accessor and Loops
Posted 09 October 2012 - 05:56 PM
Are you talking about indexers rather than accessors? http://msdn.microsof...o/6x16t2tx.aspx
#3
Re: C# accessor and Loops
Posted 09 October 2012 - 07:33 PM
Quote
I want to get the sum of a series, how would you go about doing this?... But how would you go about putting a loop in this?
Go to your professor and be honest about how lost you are. Unlike history class where the chapter on 19th century industrialization has nothing to do with 14th plague, programming requires complete comprehension of chapter 2 before going to chapter 3. You cannot succeed if you just fake your way through this chapter hoping that it will all suddenly snap into place and become clear next chapter - IT WON'T. You'll just become more and more mired in confusion.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote





|