There are a lot of little nuances with the .NET Framework and one such nuance I see quite a bit of is an interesting behavior of enumerations. Did you know you could cast an instance of an enum to a value that isn’t in the enumeration? Let’s take the following enum and method:
public enum Gender {
Male = 0,
Female = 1
}
public static void WriteGender(Gender gender)
{
Ed Sumerfield is leading the satellite location in Cincinnati for the Grand Rapids Give Camp the weekend of November 13th-15th. You can check out his Meetup site at http://www.meetup.com/TechLife-Cincinnati/calendar/11455422/?a=cv1c_grp&rv=cv1c for more information. If you are willing to donate some of your time to charity, please contact Ed to find out more information about this great opportunity.
Microsoft and a host of local partners is throwing a two day FREE event on November 12th and 13th. This event will cover a veritable cornucopia of technology, products and methodologies. If you’re interested in SQL Server, TFS, Scrum, LINQ, SharePoint, Exchange, F#, Sketchflow, Silverlight, Azure, ForeFront, RIA Services, Secure Code (just to name a few of the topics covered) you’ll get some benefit from this event. The speakers are pulled from Microsoft, community leaders, MVPs and MS Partners.