2021년 6월 22일 화요일

C# 모든 Enum값 Iterator

 



internal enum EnumType { A, B, C, }


foreach (EnumType idx in Enum.GetValues(typeof(EnumType)))
    ....;