Jak wyliczyć enum
public enum Suit
{
Spades,
Hearts,
Clubs,
Diamonds
}
foreach (Suit suit in (Suit[]) Enum.GetValues(typeof(Suit)))
{
}
Doge Amazedo
public enum Suit
{
Spades,
Hearts,
Clubs,
Diamonds
}
foreach (Suit suit in (Suit[]) Enum.GetValues(typeof(Suit)))
{
}