Array.ForEach و delegate در #C
سلام بر تمامی برنامه نویسان سی شارپ 😉 در این مطلب ، Array.ForEach و delegate در سی شارپ #C رو براتون آماده کردم. انشاالله که این کد براتون مفید باشه.
خروجی پروژه به این صورت می باشد:
8 2 3 5 1 3
Array.ForEach و delegate :
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
public class MainClass
{
public static void Main()
{
int[] array = new int[] { 8, 2, 3, 5, 1, 3 };
Array.ForEach
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
public class MainClass
{
public static void Main()
{
int[] array = new int[] { 8, 2, 3, 5, 1, 3 };
Array.ForEach