Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# foreach enum

enum Foos {
  Foo,
  Bar,
}

foreach(Foos val in Enum.GetValues(typeof(Foos))) {
  //Do whatever with the value :D
}
Comment

c# foreach enum


foreach (Suit suit in (Suit[]) Enum.GetValues(typeof(Suit)))
{
}

Comment

PREVIOUS NEXT
Code Example
Csharp :: camera follow player unity smooth 
Csharp :: c# boilerplate 
Csharp :: unity change text 
Csharp :: c# datagridview clear all rows 
Csharp :: detecting a right click unity 
Csharp :: unity change text color 
Csharp :: unity log 
Csharp :: 3(x-4)-2(3x+4)=4(3-x)+5x+4 
Csharp :: setup authorize in swagger .net core 
Csharp :: get hwid c# 
Csharp :: how to change the title of the console in c# 
Csharp :: how to delete folder with files on c# 
Csharp :: string to enum c# 
Csharp :: system command in c# 
Csharp :: c# get cpu id 
Csharp :: unity detect number key 
Csharp :: c# monogame mouse position 
Csharp :: move towards target unity 
Csharp :: unity how to load up a scene 
Csharp :: how to append a new line in a txt file c# 
Csharp :: Unity Rotate around the real center 
Csharp :: db scaffolding ef core 
Csharp :: c# fontweight in code 
Csharp :: unity particle system playing at the wrong location 
Csharp :: how to make a quit button in unity 
Csharp :: how to stop player rotating when hit by object 
Csharp :: c# convert int to pretty string 
Csharp :: Sir W. Arthur Lewis 
Csharp :: check if panel has controler c# 
Csharp :: how to unescape  in a string java 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =