Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# check if element is last in list

foreach (var x in things)
	{
        //Do stuff
    	if (x == things.Last()) // Do Stuff only for the last item 
 	}
Comment

PREVIOUS NEXT
Code Example
Csharp :: create asset menu unity 
Csharp :: c# print out 
Csharp :: unity remove gameobject 
Csharp :: c# format decimal as currency 
Csharp :: how to get random numbers in c# 
Csharp :: c# convert seconds to hours minutes seconds 
Csharp :: get remainder of number c# 
Csharp :: how to change the extension of a file C# 
Csharp :: raycast unity 
Csharp :: string to date vb 
Csharp :: c# debug console log 
Csharp :: keyboard input unity 
Csharp :: phone number regex in c# 
Csharp :: unity ui change sprite 
Csharp :: linq select count group by c# 
Csharp :: unity conditional field 
Csharp :: get all devices in game unity 
Csharp :: C# infinite clock coroutine loop 
Csharp :: if exist TempData[] c# 
Csharp :: snx turn off linux 
Csharp :: convert request.form to dictionary c# 
Csharp :: how to get the color of other label when clicking c# 
Csharp :: c # c^b 
Csharp :: play sound unity 
Csharp :: object list to csv c# 
Csharp :: ++ operator c# 
Csharp :: get desktop path c# 
Csharp :: c# datetimepicker set weeks before today 
Csharp :: c# int positive only 
Csharp :: list of chars to string c# 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =