Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array of indexers?
Message
De
28/07/2009 12:45:12
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Divers
Thread ID:
01414024
Message ID:
01415098
Vues:
39
>>>>>Glad you got it sorted - is this an exercise ? or do you have a real life need for it ?
>>>>
>>>>Mostly an exercise for myself. I'm trying to teach myself C# and the .Net Framework by doing. So I'm fooling around by writing small programs. Right now I'm playing around with a lottery program that tracks the our Lotto 649 and matches the numbers drawn to the numbers played. It also allows me to mess with SQL server a little as well as C#. The particular use I had for the indexers was in matching the numbers drawn to 'played' number lines.
>>>>
>>>>I could have used an array and then written code around in other functions that count the number of matches, rearrange the matched numbers into a printable string etc, but it seemed like it might be more elegant to create a class with it's own internal methods - an indexer. Since I want to be able to match more than one line played in any one draw, it meant using an array of indexers.
>>>>
>>>>Thanks to Bonnie's replies to other people, I've managed to figure out the back end of the thing. I wrote it with the front end being windows forms calling to a web service that talks to BOs that talk to data access code that talks to the database.
>>>>
>>>>It's been fun and a good learning experience. I'll tell you one thing for sure. Read everything Bonnie puts on the UT.
>>>>
>>>>Now it's time to figure out something else to play with to learn other things. It's easy to see how much I don't know.
>>>
>>>
>>>Alan,
>>>
>>>Recommended : http://www.amazon.com/3-0-Nutshell-Desktop-Reference-OReilly/dp/0596527578/ref=sr_1_1?ie=UTF8&s=books&qid=1248708389&sr=8-1
>>
>>Funny you should mention that. I've actually been using: http://www.amazon.com/3-0-Pocket-Reference-Instant-Programmers/dp/0596519222/ref=sr_1_1?ie=UTF8&s=books&qid=1248708922&sr=1-1
>>
>>I know it's just a reference, but in a lot of cases, that's all that's really needed. Although, I might just invest in your recommendation.
>
>I second the recommendation of "C# 3.0 in a Nutshell." It's a lot more than a syntax reference. If you already have a basic understanding of the language, which you obviously do, you will pick up lots of great little tidbits. When I do my own messing around with C# learning projects I keep it on my desk. It's getting pretty well thumbed.

Basic understanding? Well, very basic. Ok, I'm convinced. I've used nutshell books in the past for other things, so I'll pick this one up too.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform