سلام بر برنامه نویسان عزیز ایران زمین 😉 در این مطلب کد نمایش آخرین آیتم آرایه با متد Last در سی شارپ را آماده کردم. انشاالله که این آموزش برای شما مفید باشد.
کد نمایش آخرین آیتم آرایه با متد Last در سی شارپ :
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"};