Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

recorrer list c#

if (this.lista is List<B>)
{
List<B> list_B = this.lista as List<B>;
foreach (B b in list_B)
b.Tarea();
}
else if (this.lista is List<string>)
{
List<string> list_S = this.lista as List<string>;
foreach (string s in list_S)
Console.WriteLine(s);
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: how to edit .csproj file 
Csharp :: camera in raylib c# 
Csharp :: check if object has parent unity 
Csharp :: load information with txt file to uwp c# 
Csharp :: letter to number converter c# 
Csharp :: lwjgl fullscreen 
Csharp :: encode pdf file to base64 c# 
Csharp :: asp.net listbox disable selection 
Csharp :: c# winforms datagridview bind to list 
Csharp :: C# random multiple of 5 in range 
Csharp :: faucongz 
Csharp :: unity navmeshagent set destination 
Csharp :: how to get gravity from Rigidbody2D in c# 
Csharp :: selenum wait for element c# 
Csharp :: c# int division to double 
Csharp :: provide inject vue 
Csharp :: c# WriteLine() 
Csharp :: delete items in c# 
Csharp :: wait c# 
Csharp :: restrictions 
Csharp :: c# copy an object 
Csharp :: c# async task constructor 
Csharp :: string vs string c# 
Csharp :: unity color mix 
Csharp :: Archivarskodex freischalten 
Csharp :: read only variable in c# 
Csharp :: Handling Collisions unity 
Csharp :: core ui switch 
Csharp :: How to determine whether Task.Run is completed within a loop in c# 
Csharp :: hash sign c sharp 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =