Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# recorrer una lista

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 :: mvc model validation for decimal type 
Csharp :: c# multiple inheritance 
Csharp :: raq query ef core 
Csharp :: c# max sequence contains no elements 
Csharp :: Count the Number of Duplicate Characters 
Csharp :: Response.Redirect cannot be called in a Page callback 
Csharp :: c# system cryptography hash string 
Csharp :: dictionary.add values to array c# 
Csharp :: static constructor in c# 
Csharp :: enum in combobox wpf 
Csharp :: web.config customerrors not working 
Csharp :: how to compare time strings in c# 
Csharp :: c# bool list count true 
Csharp :: c# read string 
Csharp :: how to call last string from text file C# 
Csharp :: c# datediff 
Csharp :: how to move mouse with c# 
Csharp :: reflection get enum value C# 
Csharp :: value is null to insert in c# 
Csharp :: linq syntax 
Csharp :: symfony debug bar 
Csharp :: exception 
Csharp :: error cs1585 unity 
Csharp :: how to instantiate more enemies in unity 
Csharp :: how to solo squad in fortnight 
Csharp :: singleton pattern c# stack overflow 
Csharp :: unity firebase update nodes rank value by sorting value 
Csharp :: real world example of sinleton design pattern 
Csharp :: C# Convert range 
Csharp :: how to change font text mesh pro 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =