CSharpFeeds - All your C# feeds in one place.

Thursday, July 15, 2010

Back to the basics: type constructors

by luisabreu via LA.NET [EN] on 7/15/2010 7:48:42 PM

After the last two posts, I guess you could see this coming, right? Today it’s all about type constructors (and it’s a long post, so make sure you’re comfy). What is a type constructor (aka, class constructor)? In C#, it’s a static and private parameterless method which is named after the class where it’s defined. Here’s a small example: class MyClass { static MyClass() { //initialize static fields here } } Type constructors must be private (in fact, in C# you can’t even use ...

[ read more ]

Graph Colouring With Simple Backtracking, Part Two

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

Before I begin a quick note: congratulations and best wishes to David Johnson, currently the president of my alma mater, the University of Waterloo. The Queen has appointed him to be the next Governor General of Canada come this October. For those of you unfamiliar with the Canadian political structure, Queen Elizabeth is the sovereign ruler Canada; the Governor General acts as her direct representative in Canada and therefore has the (mostly ceremonial, but some real) powers of a head of state ...

[ 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