Total number of items defined in an enum. Way1. int number=Enum.GetNames(typeof(MYEnum)).Count();. Way2. public enum MYEnum{.
確定! 回上一頁