سلام خدمت کاربران وب سایت پروگرم 98 😉 در این مطلب کد استفاده از IEnumerable و Range و Sum در سی شارپ #C را آماده کردم. امیدوارم که این کد برای شما مفید باشد.
همچنین میتوانید مطلب آموزش IEnumerable و IQueryable را در وب سایت ام اس پی سافت مشاهده کنید.
کد استفاده از IEnumerable و Range و Sum در سی شارپ #C :
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
public class MainClass {
public static void Main() {
IEnumerable ints = Enumerable.Range(1, 10);
foreach (int i in ints)
Console.WriteLine(i);
using System.Linq;
using System.Collections;
using System.Collections.Generic;
public class MainClass {
public static void Main() {
IEnumerable ints = Enumerable.Range(1, 10);
foreach (int i in ints)
Console.WriteLine(i);