سلام بر تمامی برنامه نویسان سی شارپ 😉 در این مطلب کد linq: استفاده از Take و SelectMany در سی شارپ را آماده کردم. انشاالله که این کد سی شارپ براتون مفید باشد.
همچنین میتوانید مطلب آموزش Join در linq را در وب سایت ام اس پی سافت مطالعه کنید.
کد linq: استفاده از Take و SelectMany در سی شارپ :
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
public class MainClass {
public static void Main() {
string[] presidents = {"Aaa", "Art", "Buch", "Bushman", "Carter", "land"};
IEnumerable chars = presidents.Take(5).SelectMany(s => s.ToArray());
foreach (char ch in chars)
using System.Linq;
using System.Collections;
using System.Collections.Generic;
public class MainClass {
public static void Main() {
string[] presidents = {"Aaa", "Art", "Buch", "Bushman", "Carter", "land"};
IEnumerable chars = presidents.Take(5).SelectMany(s => s.ToArray());
foreach (char ch in chars)