سلام بر تمامی برنامه نویسان عزیز 😉 در این مطلب کد کوئری زدن روی آرایه و نمایش نتیجه جستجو با foreach در سی شارپ #C را آماده کردم. امیدوارم که این کد برای شما مفید باشد.
کد کوئری زدن روی آرایه و نمایش نتیجه جستجو با foreach در سی شارپ #C :
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Linq;
using System.Linq;
class Program
{
static void Main(string[] args)
{
string[] currentVideoGames = {"test", "this is a test", "asdf", "game 1","game 2", "game 3"};
var subset = from g in currentVideoGames where g.Length > 6 orderby g select g;
using System.Collections.Generic;
using System.Text;
using System.Xml.Linq;
using System.Linq;
class Program
{
static void Main(string[] args)
{
string[] currentVideoGames = {"test", "this is a test", "asdf", "game 1","game 2", "game 3"};
var subset = from g in currentVideoGames where g.Length > 6 orderby g select g;