2

私は列挙型を持っています

public enum citys
{
       a=1,
       b=1,
       c=1,
       d=2,
       e=2,
       f=2,
};

そして、値に基づいて戻りたいName.たとえば、その中foreach return Enum.GetNamesValue =1

 result --> a,b,c
 foreach return Enum.GetNames that Value =2
 result --> d,e,f

ご協力いただきありがとうございます。

4

1 に答える 1