Skip to content

Instantly share code, notes, and snippets.

@CountZachula
Last active December 21, 2015 16:59
Show Gist options
  • Save CountZachula/6337136 to your computer and use it in GitHub Desktop.
Save CountZachula/6337136 to your computer and use it in GitHub Desktop.
U.S. state class with static name-abbreviation properties.
/// <summary>
/// State (U.S.).
/// </summary>
public class State
{
public static string Alabama { get { return "AL"; } }
public static string Alaska { get { return "AK"; } }
public static string Arizona { get { return "AZ"; } }
public static string Arkansas { get { return "AR"; } }
public static string California { get { return "CA"; } }
public static string Colorado { get { return "CO"; } }
public static string Connecticut { get { return "CT"; } }
public static string Delaware { get { return "DE"; } }
public static string DistrictOfColumbia { get { return "DC"; } }
public static string Florida { get { return "FL"; } }
public static string Georgia { get { return "GA"; } }
public static string Hawaii { get { return "HI"; } }
public static string Idaho { get { return "ID"; } }
public static string Illinois { get { return "IL"; } }
public static string Indiana { get { return "IN"; } }
public static string Iowa { get { return "IA"; } }
public static string Kansas { get { return "KS"; } }
public static string Kentucky { get { return "KY"; } }
public static string Louisiana { get { return "LA"; } }
public static string Maine { get { return "ME"; } }
public static string Maryland { get { return "MD"; } }
public static string Massachusetts { get { return "MA"; } }
public static string Michigan { get { return "MI"; } }
public static string Minnesota { get { return "MN"; } }
public static string Mississippi { get { return "MS"; } }
public static string Missouri { get { return "MO"; } }
public static string Montana { get { return "MT"; } }
public static string Nebraska { get { return "NE"; } }
public static string Nevada { get { return "NV"; } }
public static string NewHampshire { get { return "NH"; } }
public static string NewJersey { get { return "NJ"; } }
public static string NewMexico { get { return "NM"; } }
public static string NewYork { get { return "NY"; } }
public static string NorthCarolina { get { return "NC"; } }
public static string NorthDakota { get { return "ND"; } }
public static string Ohio { get { return "OH"; } }
public static string Oklahoma { get { return "OK"; } }
public static string Oregon { get { return "OR"; } }
public static string Pennsylvania { get { return "PA"; } }
public static string RhodeIsland { get { return "RI"; } }
public static string SouthCarolina { get { return "SC"; } }
public static string SouthDakota { get { return "SD"; } }
public static string Tennessee { get { return "TN"; } }
public static string Texas { get { return "TX"; } }
public static string Utah { get { return "UT"; } }
public static string Vermont { get { return "VT"; } }
public static string Virginia { get { return "VA"; } }
public static string Washington { get { return "WA"; } }
public static string WestVirginia { get { return "WV"; } }
public static string Wisconsin { get { return "WI"; } }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment