.Net Nooks and Crannies

by paet the pagan-gerbil 12. December 2009 21:07

I really love Stack Overflow. It’s so cool to have a link to many, many great coding minds to help with the minutiae of my learning process, whether through asking a question myself or finding that someone else asked something similar months ago.

The last question I asked was about public properties that should be read-only (usually List<T> or somesuch thing), but allow the user to add an item still. The answer was to use a class called ‘ReadOnlyCollection<T>’. This is one of many, many classes that I’ve never heard of but would be incredibly useful if I had!

When I get to the end of the first run of Wargame Tools, I’ll definately be refactoring it (especially since I plan to port the logic to an ASP.NET MVC 2.0 application and see how those work) and will be sure to blog about this class and how I find using it.

Tags: ,

Programming

Comments

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading




Powered by BlogEngine.NET 1.6.0.0
Theme by Pete Fullergreen, based on one by Mads Kristensen

Shop at Amazon.co.uk
Find us on Facebook!