C# implicit string conversion 3
I know how it works and I think I can see why but I'm still not very fond of how eager C# is to perform implicit string conversion.
Contrived example:
1 2 |
string s = -42 + '+' + "+" + -0.1 / -0.1 + "=" + (7 ^ 5) + " is " + true + " and not " + AddressFamily.Unknown; |
s will be set to "1+1=2 is True and not Unknown"
The answer is in white text above, select the text to see it.
A more real problem is something like this
string str = 1 + 2 + "!=" + 1 + 2; |
str will be set to "3!=12".
Edit 2010-02-08
This wouldn't be much of a problem if all objects in .NET always returned a decent string representation of their current state/value with ToString() but that's not the case. Instead "The default implementation returns the fully qualified name of the type of the Object.".
I don't like the inconsistency. It's way too late now but I think it would have been much better if only objects that really produces a human readable output of the data in the object should implement ToString(). If you want the name of the type of the Object there should be another way.

Cheap &nike shox& technical characteristics of development,&nike shox nz& incoporated into several their flagship sports shoes. In a whole series of &nike shox oz&,cheap &nike shox r4& is the best functional admitted. Designed for athletes,&nike shox r5& shoes really get the best prestige as the perfect balance and response buffer. As an art of &nike shox tl1&,not only the sequence to provide high-tech design, and plush and healthy and comfortable. Similar &nike shox tl3& shoes is more stable,&nike shox shoes& durable use Nike Shox column and rubber outsole. And &cheap nike shox& has a perfect appearance, shows a temperament of royalties. Cheap &Derrick Rose Shoes& provide superior natural motion engineering buffer effect at http://www.nikeshoxusa.net/.
Most of the ★ Nike Air Max ★ running shoes,write his future ★ Air Max Discount ★, trade as a symbol of Nike ★ Air Max Shoes ★. Cheap ★ nike air max 2012 ★ online certainty and more flexibility. Love Firewire inside the ★ nike air max 2011 ★shoes, speed runners like extreme sports ★ air max 2009 ★ shoes. However,★ nike air max 247 ★ with women increase the ankle injury, cheap ★ air max 90 ★ shoes ideal security solution for ease of storage and faster speed, more women know feelings, to enjoy ★ nike air max 90 high ★, and not prove the ★ nike air max 95 ★ is to improve on her ankle. Even in the style of the ★ Nike Free 7.0 ★. Each pair of ★ Nike Free 3.0 ★ shoes are not the same. Even though the same types of Nike shoes, demand is always different. And general appearance, drama, such as Nike Shox running shoes, but the most elegant, rich and colorful design http://www.airmaxdiscounts.net as a skate-shoes for the board young and fashion design.
〃 Nike Air Max Lebron VIII 〃 match colors bring new 〃 Nike Lebron VIII PS 〃introduced the small 〃 Nike Lebron 8 V2 〃 shoes. We have seen this 〃 Nike Lebron 9 〃new group fresh water will fall in April 2011, now we would confirm the release date will be in April 23 rd, 2011. All of these 〃 Adizero Derrick Rose 〃shoes made of the best leather, air Max cushiong very comfortable, stable shoes! Now we provide the latest 〃 Nike Hyperdunk 2012 〃and 〃 Nike Zoom Hyperfuse 〃 shoes! Besides 〃 Nike Zoom Kobe Vii 〃 basketball shoes, the style 〃 Nike Zoom Kobe VI 〃is different. The inside of the 〃 nike lebron shoes 〃and 〃 lebron james shoes 〃, for our own 〃 cheap nike lebron 〃has the potential to create a better future,http://www.lebronjame8shoes.com/ will affect what you write, you in the future trend of development.