Last active
May 16, 2023 18:35
-
-
Save mick-io/a98a28ecd7de85cd45f75028986db435 to your computer and use it in GitHub Desktop.
C# enums for US States and Candian Provinces
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum USState | |
{ | |
ALABAMA = "AL", | |
ALASKA = "AK", | |
ARIZONA = "AZ", | |
ARKANSAS = "AR", | |
CALIFORNIA = "CA", | |
COLORADO = "CO", | |
CONNECTICUT = "CT", | |
DELAWARE = "DE", | |
FLORIDA = "FL", | |
GEORGIA = "GA", | |
HAWAII = "HI", | |
IDAHO = "ID", | |
ILLINOIS = "IL", | |
INDIANA = "IN", | |
IOWA = "IA", | |
KANSAS = "KS", | |
KENTUCKY = "KY", | |
LOUISIANA = "LA", | |
MAINE = "ME", | |
MARYLAND = "MD", | |
MASSACHUSETTS = "MA", | |
MICHIGAN = "MI", | |
MINNESOTA = "MN", | |
MISSISSIPPI = "MS", | |
MISSOURI = "MO", | |
MONTANA = "MT", | |
NEBRASKA = "NE", | |
NEVADA = "NV", | |
NEW_HAMPSHIRE = "NH", | |
NEW_JERSEY = "NJ", | |
NEW_MEXICO = "NM", | |
NEW_YORK = "NY", | |
NORTH_CAROLINA = "NC", | |
NORTH_DAKOTA = "ND", | |
OHIO = "OH", | |
OKLAHOMA = "OK", | |
OREGON = "OR", | |
PENNSYLVANIA = "PA", | |
RHODE_ISLAND = "RI", | |
SOUTH_CAROLINA = "SC", | |
SOUTH_DAKOTA = "SD", | |
TENNESSEE = "TN", | |
TEXAS = "TX", | |
UTAH = "UT", | |
VERMONT = "VT", | |
VIRGINIA = "VA", | |
WASHINGTON = "WA", | |
WEST_VIRGINIA = "WV", | |
WISCONSIN = "WI", | |
WYOMING = "WY", | |
AMERICAN_SAMOA = "AS", | |
GUAM = "GU", | |
NORTHERN_MARIANA_ISLANDS = "MP", | |
PUERTO_RICO = "PR", | |
US_VIRGIN_ISLANDS = "VI" | |
} | |
public enum CanadianProvince | |
{ | |
ALBERTA = "AB", | |
BRITISH_COLUMBIA = "BC", | |
MANITOBA = "MB", | |
NEW_BRUNSWICK = "NB", | |
NEWFOUNDLAND_AND_LABRADOR = "NL", | |
NOVA_SCOTIA = "NS", | |
ONTARIO = "ON", | |
PRINCE_EDWARD_ISLAND = "PE", | |
QUEBEC = "QC", | |
SASKATCHEWAN = "SK", | |
NORTHWEST_TERRITORIES = "NT", | |
NUNAVUT = "NU", | |
YUKON = "YT" | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment