Browse by Tags

All Tags » WTF?! (RSS)

What's Trace Got To Do With Culture?

I really don't know the answer to that question, but we've hit the strangest issue. The following code runs well when <trace enabled="true"> is set on web.config, but throws FormatException when it's set to false. DateTime . Parse ( DateTime . Now . ToString ()); We're thinking that somehow trace affects the system's culture, causing the code work. But it still doesn't make any sense to us. Looking in debug, it seems that DateTime.Now.ToString returns "DD"...
Posted by dorony | with no comments

No Excuse

Recently, I've encountered the following code, in a commercial API for a software that costs dozens of thousands of dollars. Now you don't need to know what this method is supposed to do, all you need to know is that Geometry is an abstract base class for all types of, well, geometries, and Point inherits from Geometry. public DataTable[] Identify(Geometry geom) { // ... Do some stuff ... if ( ! (geom is Point)) throw new NotSupportedException(); // ... Do some more stuff ... } If you're wondering...
Posted by dorony | 2 comment(s)
תגים:,

Wiz Kid

Check this out . This 14 year old kid called Shachar has lectured about Windows Vista in front of a crowd of grown-up professionals at the Microsoft Developer Academy a few days ago (which I attended and really enjoyed). Man, when I was 14 I barely knew what an operating system does. And they say today's youth spend all their time watching TV and IM-chatting...
Posted by dorony | with no comments
תגים: