| | |
| | | |
| | | { |
| | | Type type = typeof(AGVStationAreaEnum); |
| | | List<int> enums = Enum.GetValues(typeof(AGVStationAreaEnum)).Cast<int>().ToList(); |
| | | List<string> enumNames = Enum.GetNames(typeof(AGVStationAreaEnum)).ToList(); |
| | | int index = 0; |
| | | foreach (var item in enums) |
| | | foreach (var item in enumNames) |
| | | { |
| | | FieldInfo? fieldInfo = typeof(AGVStationAreaEnum).GetField(((AGVStationAreaEnum)item).ToString()); |
| | | FieldInfo? fieldInfo = typeof(AGVStationAreaEnum).GetField((item).ToString()); |
| | | DescriptionAttribute? description = fieldInfo.GetCustomAttribute<DescriptionAttribute>(); |
| | | if (description != null) |
| | | { |