Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Discussions

William Kempf wkempf
  • Getting current method name in C# similar to __FUNCTION__ in C

    The reflection route won't always work, due to inlining. The CallerMemberNameAttribute is more reliable, but it doesn't give you the current method, but rather the calling method. Should still work for what you're trying to do, obviously, but you specifically asked about getting the current method name. I'd also point out that the CallerMemberName approach can be misused, though that's probably not something you're worried about.

  • why does java have a classpath? ( or why doesn't .NET have one ? )

    The CLASSPATH in Java is a horribly broken concept, IMHO. For instance, did you know there's more than one CLASSPATH? There's the normal CLASSPATH and a "boot CLASSPATH". You hardly ever have to care about that, but when you do, confusion ensues. Not to mention all of the other nightmares involved that you can easily find by Googling on Bing. In fact, it's such a pain that tools like JWhich were created to help you figure out what's going on.

    Sharing binaries seemed like a good idea in the 90s, but I think we're mostly in agreement that XCopy is the way to go today.

  • WinRT Temporary folder

    As a developer, I don't know why you'd care? Temporary files should be programmatically cleaned up ASAP, at worst during program termination. There are exception to that, like auto-save file type concepts, but even those exceptions leave me wondering why you'd care?

    As a user, you'd care, but the answer is the same as with any temporary file: "Files stored in the folder can be removed at any time by system or by user via Disk Cleanup."

  • So much for Windows Phone ​development.​..

    Yeah, the emulator thing really upsets me, to be honest. Even lots of new devices don't have SLAT support.

  • Get a name of derived class in c#

    No, I meant externally. They currently consume model.Type externally, which you have to implement to return a string. Instead, they could consume model.GetType().Name externally, which would mean you wouldn't have to implement the Type property.

  • Intel says: Bay-Trail == $200 Win8 devices

    @Sven Groot: There are plenty of Good quality 7" tablets at the $200 price point, so the cost of the display hasn't been what's kept Win8 devices from getting there.

  • Holy crap - 3 pages of Spam!! I guess this site got hacked...?

    Every day this week. C9 has to do something more than just delete these posts, and it needs to do it soon, or people may stop coming here.

  • Get a name of derived class in c#

    this.GetType().Name

    That said, I'd be very curious why Couchbase has this requirement, because they could do the same thing externally, which would be safer (classes can't lie).

  • Double dipping?

    Try harder to troll, please. Double dipping? Give me a break.

    "In situations where both the OEM and ODM has a deal with Microsoft, they'll work out between themselves who pays the license fee."

    And the conspiracy theory like spin that this must be a symbolic gesture is void of any thought. No matter how you spin this, Microsoft now gets paid royalties on Android devices Foxconn makes, while everything else about their relationship remains the same. Both parties have said money is flowing in one direction here... to Microsoft.

    A discussion about the patent situation and how the patent system is broken is something I could have gone with, but this post is pointless.

  • Keyboard Shortcuts

    @DeathByVisualStudio: I've never seen an official Microsoft statement resembling your claims. I have seen others (myself included) suggesting the keyboard shortcuts, but not as an excuse for the design (we don't have control over that) but simply as a faster alternative.

    I honestly didn't think this thread was yet another "they moved my cheese" post. If it's that, I bow out now, as that rhetoric is growing tiresome.