سلام بر برنامه نویسان عزیز ایران زمین 😉 در این مطلب آموزش استفاده از متد SkipWhile برای آیتم هایی که با حرف A شروع می شوند در سی شارپ #C را آماده کردم. انشاالله که این کد براتون مفید باشه.
کد استفاده از متد SkipWhile برای آیتم هایی که با حرف A شروع می شوند در سی شارپ #C :
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
public class MainClass {
public static void Main() {
string[] presidents = {"Ant", "arding", "arrison", "ayes", "Hoover", "ackson"};
IEnumerable items = presidents.SkipWhile(s => s.StartsWith("A"));
using System.Linq;
using System.Collections;
using System.Collections.Generic;
public class MainClass {
public static void Main() {
string[] presidents = {"Ant", "arding", "arrison", "ayes", "Hoover", "ackson"};
IEnumerable items = presidents.SkipWhile(s => s.StartsWith("A"));