Answers for "object foreach c#"

C#
0

for each property in object c#

foreach (PropertyInfo propertyInfo in obj.GetType().GetProperties())
{
   // do stuff here
}
Posted by: Guest on April-24-2020
0

for each C#

foreach (int element in fibNumbers)
{
    Console.Write($"{element} ");
}
Posted by: Guest on June-08-2021

C# Answers by Framework

Browse Popular Code Answers by Language