22

After my colleague noticed me of this..."feature", I immediately thought I'd ask you all, why is it even implemented then?

Comments
  • 7
    We'll think about it this way, if they didn't put that in, I would have nothing to laugh at right now while on the toilet.

    Sums up the usefulness of Microsoft right there
  • 3
    As a MS fanboy and a frequent participant in Dilbert-worthy meetings, I suspect the meeting to add the method went something like this..
    Dev:"Why do I have to add the ToDouble method for DateTime?"
    PHB:"Developer feedback. They demand the feature and developers are #1"
    Dev: "No, seriously...no developer would ever, ever convert a DateTime to a double on purpose. This doesn't make any sense."
    PHB: "Developers are our customers and customer satisfaction is our #1 goal. Add the method,or else!"

    What was the "developer feedback"?

    .NetBetaTester: "Hey, can I get a function to convert the DateTime to a double so I can manipulate how dates are calculated. Like adding days, subtracting minutes. Extend the Convert class and add ToDouble"
    .NetEngineer: "No need. The DateTime extension methods have all that behavior."
    .NetBetaTester: "Great! You saved me a ton of work."

    PHB only read the *one* initial request and likely got a big bonus for "encouraging" the devs to add frivolous methods.
  • 2
    It's there in case you ever need to throw an InvalidCastException.
  • 3
    .net 1.1 says it's reserved for future use ..
    https://msdn.microsoft.com/en-us/...(v=vs.71).aspx

    so it seems like in the past it was reserved for the future but in the present it has no future use
  • 2
    i think the time DOUBLES UUUUP!!!!
Add Comment