سلام خدمت کاربران وب سایت پروگرم 98 😉 در این مطلب کد استفاده از Linq Aggregate برای معکوس کردن یک رشته در سی شارپ را آماده کردم. انشاالله که این آموزش برای شما مفید باشد.
کد استفاده از Linq Aggregate برای معکوس کردن یک رشته در سی شارپ :
using System;
using System.Collections.Generic;
using System.Linq;
class Program
{
private static string ReverseString(string sentence)
{
List<string> words = new List<string>(sentence.Split(' ').ToList());
using System.Collections.Generic;
using System.Linq;
class Program
{
private static string ReverseString(string sentence)
{
List<string> words = new List<string>(sentence.Split(' ').ToList());