به نام خدا سلام بر برنامه نویسان عزیز 😉 در این مطلب آموزش linq: استفاده از Take و Skip و Intersect در سی شارپ #C را آماده کردم. انشاالله که این کد براتون مفید باشه.
کد linq: استفاده از Take و Skip و Intersect در سی شارپ #C :
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
public class MainClass {
public static void Main() {
string[] presidents = {"G", "H", "a", "H", "over", "Jack"};
IEnumerable<string> first = presidents.Take(5);
IEnumerable<string> second = presidents.Skip(4);
using System.Linq;
using System.Collections;
using System.Collections.Generic;
public class MainClass {
public static void Main() {
string[] presidents = {"G", "H", "a", "H", "over", "Jack"};
IEnumerable<string> first = presidents.Take(5);
IEnumerable<string> second = presidents.Skip(4);