Bill Blogs in C#

Bill Wagner discusses C#, LINQ, and other items of interest

Browse by Tags

All Tags » Effective C# (RSS)
Properties vs. Methods
Not so much a code as what you might call 'guidelines' Recently, one of the readers of Effective C# asked me some questions about Properties vs. Get and Set methods. It turned into a rather interesting conversation, so I'm posting it all here...

Posted by wwagner | with no comments

Filed under: ,

Effective C# Reviewed by C++ Users Journal
Peter is always thorough. Peter N. Roth reviewed "C# Precisely", and "Effective C#" in the latest issue of C++ Users Journal. You can read the full review here: http://www.cuj.com/documents/s=9897/cuj0510book/ I'll only add one...

Posted by wwagner | with no comments

Filed under:

Answering Questions: The future of Effective C#
What comes next? One of the comments on an earlier entry ( http://www.srtsolutions.com/blogs/billwagner/2005/06/21/id93158.aspx ) asks if I'm going to write an updated version of Effective C# for version 2.0. I'm not certain, for two reasons....

Posted by wwagner | with no comments

Filed under:

There are some things money can't buy
For everything else.... Oh, never mind Cost of PDC: $1500 Hotel (5 nights): $950 airfare: $375 Having the C# Product unit manager recommend your own book to you.... Priceless . <short backstory> At PDC, a number of RD's were invited to spend...

Posted by wwagner | with no comments

Filed under: ,

Reader Question: Effective C# Item 7
On immutable structs, structs, and classes I received the following question that relates to Item 7 in Effective C#. It’s not strictly an errata, so I thought I would post it here for general discussion: In Item 7, you recommend the use of immutable...

Posted by wwagner | with no comments

Filed under:

I've been Slashdot'ed
A very thorough review of Effective C# Jim Holmes, who runs the Dayton Ohio .NET User group posted a very thorough review of Effective C# yesterday. (Thank you, Jim). The slashdot Review More than 150 comments, and growing Jim's follow-up comments...

Posted by wwagner | with no comments

Filed under:

Why the violin on the cover of Effective C#?
There's no hidden meaning, really. A friend asked me why there is a violin on the cover of Effective C# instead of any other instrument. The logic was actually pretty simple. A musical instrument seemed logical for a C# book. At the time, four of...

Posted by wwagner | with no comments

Filed under: ,

A lengthy item on Exceptions and app domain boundaries
An Effective C# reader had a number of questions on Exceptions and Remoting Throwing Exceptions across appdomain boundaries is more complicated than it is in other situations. The full discussion It's in my Effective C# blog, because it centers on...

Posted by wwagner | with no comments

Filed under:

A C# Performance Question
A reader asks about a variation of loop variable hoisting Question on Item 11. Regarding your examples of loops, where would the following end up in efficiency? // Loop 4: ( for ( int index = 0, len = foo.Length; index < len; index++) … This...

Posted by wwagner | with no comments

Filed under: ,

Books a Million promotion for Effective C#
It's in the stores only, if you are in their region. Books a million ( http://www.booksamillion.com ) has a promotional deal running on Effective C#. It's in the stores only, so the website does not mention the promo. The Effective C# page at...

Posted by wwagner | with no comments

Filed under:

Fawcette has published another excerpt from Effective C#
Those of you that receive .NET Insight saw this yesterday Fawacette Technical Publications (FTP) has published a second excerpt from Effective C# online. This time it's Item 44, discussing how to create your own custom exception classes. The landing...

Posted by wwagner | with no comments

Filed under:

Effective C# Book Discussion page opened
I've opened a blog for reader Q & A (and errata *sigh*). I’ve added the first reader Q & A item to the Effective C# book blog: In the section on Conditionals you say that in order to create a method that will fire if more than one condition...

Posted by wwagner | with no comments

Filed under:

Effective C#: Thanks for the plug.
Peter Himshoot (a fellow RD) comments on Effective C# Peter Himshoot, another Regional Director , has written an entry in his blog about Effective C# . He says some very nice things, including "So for anyone interested in improving their C# (and...

Posted by wwagner | with no comments

Filed under:

Three new online items for Effective C#
Addison Wesley is posting *more* excerpts of Effective C# now (But you should still buy the book.) New this week: Two new items. First, Prefer Immutable Atomic Values Types (pdf) . Second, Understand the pitfalls of GetHashCode (pdf) . Third, there is...

Posted by wwagner | with no comments

Filed under:

Effective C# is starting to go live
Addison Wesley is posting excerpts of Effective C# now It’s exciting to see this becoming real after all this work. Each week, one new item will go online here at the main page. This week's item is on differentiating between value types and...

Posted by wwagner | with no comments

Filed under: