13
C # วนซ้ำผ่าน enum? (การสร้างดัชนี System.Array)
ฉันมีรหัสต่อไปนี้: // Obtain the string names of all the elements within myEnum String[] names = Enum.GetNames( typeof( myEnum ) ); // Obtain the values of all the elements within myEnum Array values = Enum.GetValues( typeof( myEnum ) ); // Print the names and values to file for ( int i …
113
c#
enums
iteration
system.array