CSharpFeeds - All your C# feeds in one place.

Thursday, November 12, 2009

Closing over the loop variable considered harmful

by Eric Lippert via Fabulous Adventures In Coding on 11/12/2009 2:50:00 PM

I don't know why I haven't blogged about this one before; this is the single most common incorrect bug report we get. That is, someone thinks they have found a bug in the compiler, but in fact the compiler is correct and their code is wrong. That's a terrible situation for everyone; we very much wish to design a language which does not have "gotcha" features like this. But I'm getting ahead of myself. What's the output of this fragment? var values = new List<int>() { 100, 110, ...

[ read more ]

Magellan Controllers

by Paul Stovell via Paul Stovell on 11/12/2009 10:11:38 AM

Back to: Magellan Home As an MVC framework, controllers are the most prominent object in Magellan. At their simplest, controllers are implemented as classes, and actions are implemented as methods on the class. Actions on a controller must be public methods, and must return ActionResult objects. Here is an example: public class CustomerController : Controller { public ActionResult Index() { Model = Customers.GetAll(); return Page(); } public A ...

[ read more ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us