M
Michael S
Jon Skeet said:Yes, performance tends to be the point people don't like about it. I
would hate to develop without it these days![]()
Does it work in VS 2008 B2?
Of course, I'd appreciate it if you'd redirect people to my book after
it's out![]()
Guess we have to buy a few copies.
Indeed. I thought I'd be avoiding var like the plague, but I'm now keen
on it - only where it makes sense, of course.
I've seen it been abused with mixed datatypes. I would not do like this:
var circum = 3.14 * 2 * 7 + " is the circumfarence of 7";
Mixing doubles, ints and string could be confusing.
I would be explicit and write
string circum = 3.14 * 2 * 7 + " is the circumfarence of 7";
Ditto, ironically...
My task was to make some custom sorting on a list,
that is final containing objects I have no control over.
So I had to Copy/Convert all objects into instances of a class that
I can implement IComparable on, and put them all in a ArrayList.
Making a nested MySorter class , implement ICompare,
and new up my sorter in ArrayList.Sort();
Yuk. Way to Javaish for my taste.
I want Linq!
- Michael Starberg