Wednesday, June 22, 2005

c# tip:

Did you know you can escape reserved keywords with the @ sign so you can use them as variable names? I had no idea. Just ran across a post on the NHibernate forums describing it.

Where NHibernate uses "clazz" as a variable name now to refer to a variable holding a Type (I always use type myself, but I realize they probably want to stay more or less CLS compliant), they could be using "@class".

Just thought that was nifty.
Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?