我有一个这样的枚举:enumMyEnum{[Order(1)]ElementA=1,[Order(0)]ElementB=2,[Order(2)]ElementC=3}我想列出它的元素,按我编写的自定义顺序属性排序,以便我得到一个排序的项目列表。我正在获取描述属性,但只是针对这样一个元素:FieldInfofi=value.GetType().GetField(value.ToString());DescriptionAttribute[]attributes=(DescriptionAttribute[])fi.GetCustomAttributes(typeof(Descripti