Erik Porter's Blog

Life and Development at Microsoft and Other Technology Discussions

News

    May 2004 - Posts

    property code snippet

    Just went to a class at TechEd on C# IDE enhancements for VS 2005 and loved it.  I had already seen about 80% of it being on the Whidbey Alpha, but there were some more really cool things in there.  Again I was reminded seeing the property generation code snippet that I think it's silly to have to specify a field name AND a property name.

    Since code snippets are just xml files, you can go in and change it yourself.  Here's how I changed mine...
    (located in “C:\Program Files\Microsoft Visual Studio 8\VC#\Expansions\1033\Expansions\property.xml” taken from the Code node in the xml file)

    private $type$ _$property$

    public $type $property$
    {
         get { return _$property$;}
         set { _$property$ = value;}
    }
    $end$

    So now with this, the snippet will be smart in the IDE and only ask you to enter the type and the name of the backing field, instead of also asking you for the name of the property.  If you don't like it, change it...very cool!  :)

    UPDATE: I fixed the problems with the code (I was talking to someone while posting  :P) and also talked to someone about how to possibly dump backing variables into a region, but it sounds like at this point it's only possible by doing a plug-in or something, accessing the code model that way.

    Posted: May 27 2004, 03:16 PM by HumanCompiler | with 7 comment(s)
    Filed under:
    TechEd.Progress += 0.5

    Well, we're half way done with TechEd and it's been pretty groovy so far.  I've met sooooo many people (old and new) that I'm not going to list any, but everyone has been great to talk to, geek out with, etc.

    The Cabana for me as someone on staff has been unfortunately disappointing.  I just had my first question today (I wasn't even working, just stopped by to find someone) and unfortunately couldn't answer it.  Otherwise it's mostly just been mingling with Microsoft employees and other “industry experts” (i.e. geek talk and xbox).

    That aside, I think the Cabana's are absolutely fantastic!  Sit down on comfy couches, play xbox with other attendees and Microsoft employees, get your questions answered, etc...can't beat it!  If you're an attendee and you haven't gone yet, DO CHECK THEM OUT!

    I've been going to some sessions while I'm here and they haven't been too bad.  Learned a few things about the new features in C# (a lot was overview since 70% of it is in VB too), Smart Clients, SOA, etc.

    Posted: May 26 2004, 04:58 PM by HumanCompiler | with no comments
    Filed under:
    @ TechEd Cabana
    Well, I'm here.  The trip was a bit choppy, but not too bad (had a DVD player to watch on the plane).  I'm sitting here in the Developer Tools Cabana here at TechEd 2004.  If you're one of the attendees today, feel free to drop by and say hello!  :)
    Posted: May 23 2004, 12:08 PM by HumanCompiler | with 2 comment(s)
    Filed under:
    LongHorn Music Icon
    First off, I love the new icons in the WinHec Preview of LongHorn...very cool.  However, I'm wondering about the “Music” icon.  Is it just me or does it seem like not such a good idea to use a CD case with a CD coming out of it?  It looks really cool, but with more and more people buying music online or whatever in some digital format (and the fact that LongHorn won't be out for so long) doesn't something more general like a music note or whatever make more sense than a CD?  I'm sure my kids (don't have any yet) won't even know what a CD is!  ;)
    Using Custom Attributes in ASP.NET

    I just posted a new “article” on some things I've been playing around with in using Custom Attributes in an ASP.NET Project.

    http://weblogs.asp.net/eporter/articles/CustomAttributesInWebProject.aspx

    More Posts