سلام بر برنامه نویسان عزیز ایران زمین 😉 در این مطلب از وب سایت پروگرم 98 آموزش صدا زدن Filter Method با Lambda Expression در سی شارپ #C را آماده کردم. انشاالله که این آموزش برای شما مفید باشد.
کد صدا زدن Filter Method با Lambda Expression در سی شارپ #C :
using System;
using System.Collections;
public delegate bool IntFilter(int i);
public class MainClass {
public static int[] FilterArrayOfInts(int[] ints, IntFilter filter) {
ArrayList aList = new ArrayList();
foreach (int i in ints) {
if (filter(i)) {
aList.Add(i);
}
using System.Collections;
public delegate bool IntFilter(int i);
public class MainClass {
public static int[] FilterArrayOfInts(int[] ints, IntFilter filter) {
ArrayList aList = new ArrayList();
foreach (int i in ints) {
if (filter(i)) {
aList.Add(i);
}