به نام خدا سلام بر برنامه نویسان عزیز 😉 در این پست کد linq:استفاده از متد مربوط رشته (StartsWith) و متد First و نمایش اولین عنصر آرایه که بار حرف H شروع می شود در سی شارپ را آماده کردم. انشاالله که این کد براتون مفید باشه.
کد linq:استفاده از متد مربوط رشته (StartsWith) و متد First و نمایش اولین عنصر آرایه که بار حرف H شروع می شود در سی شارپ :
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"};
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"};