Chris Martin points to a great String.Format(…) reference by Steve Tibbett. Once you’ve grokked the basics of String.Format(…) Steve’s guide is a good quick reference for the various ways that you can format the output of an object in .NET. The comments are also fantastic, especially the ones like Jorge de Cardenas (although I probably would have written that as:
string output = value == 0 ? “no” : “yes”;
But I guess it would depend on whether they could rightfully expect anything other than zero or one. Anyway – I digress, a very good reference – bookmarked and subscribed!