public enum typeList { type1, type2, type3 }
Response.Write(Enum.GetNames(typeof(typeList)).Length);