CSharpFeeds - All your C# feeds in one place.

Monday, July 12, 2010

Graph Colouring With Simple Backtracking, Part One

by Eric Lippert via Fabulous Adventures In Coding on 7/12/2010 3:15:00 PM

As regular readers know, I'm interested in learning how to change my C# programming style to emphasize more concepts from functional programming, like use of immutable rather than mutable data structures and use of declarative control flow like LINQ queries instead of imperative control flow in the form of loops. I thought I'd solve a fairly straightforward problem using a mix of immutable and mutable, declarative and imperative styles to indicate when each is useful and appropriate. I pic ...

[ read more ]

Back to the basics: instance constructors

by luisabreu via LA.NET [EN] on 7/12/2010 2:35:08 PM

[Update: updated the text that explains why you’d need to make an explicit call to the base class’ constructor. Thanks Damien] In the last post, I’ve mentioned constructors…but what is a constructor? The first thing you should keep in  mind is that there are several types of constructors and, in this post, we’ll only be talking about instance constructors. So, what’s an instance constructor? Constructors are special methods which are responsible for initializing an object to a “good” stat ...

[ read more ]

Back to the basics: Why is my constructor not being called?

by luisabreu via LA.NET [EN] on 7/12/2010 9:14:20 AM

When we create a new type and define a constructor, I guess there’s nothing wrong with expecting to see that constructor called whenever a new instance of a type is created. The problem is that there are some cases where that doesn’t happen. For instance, here are two situations where your constructor won’t be called: when you serialize/deserialize an object when you use the MemberwiseClone method In the past, I’ve already mentioned the serialization gotcha (you can read about it here a ...

[ read more ]

Back to the basics: Why is my constructor being called?

by luisabreu via LA.NET [EN] on 7/12/2010 9:14:20 AM

When we create a new type and define a constructor, I guess there’s nothing wrong with expecting to see that constructor called whenever a new instance of a type is created. The problem is that there are some cases where that doesn’t happen. For instance, here are two situations where your constructor won’t be called: when you serialize/deserialize an object when you use the MemberwiseClone method In the past, I’ve already mentioned the serialization gotcha (you can read about it here 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