سلام خدمت کاربران وب سایت پروگرم 98 😉 در این مطلب کد استفاده از کلیدها برای تشخیص مقدارها از generic SortedList در سی شارپ #C را آماده کردم. انشاالله که این کد براتون مفید باشه.
خروجی این کد به این صورت است:
A, Salary: $7.00
B, Salary: $5.00
C, Salary: $4.00
D, Salary: $9.00
B, Salary: $5.00
C, Salary: $4.00
D, Salary: $9.00
کد استفاده از کلیدها برای تشخیص مقدارها از generic SortedList در سی شارپ #C :
using System;
using System.Collections.Generic;
class MainClass {
public static void Main() {
SortedList<string, double> sl = new SortedList<string, double>();
sl.Add("A", 7);
sl.Add("B", 5);
sl.Add("C", 4);
sl.Add("D", 9);
using System.Collections.Generic;
class MainClass {
public static void Main() {
SortedList<string, double> sl = new SortedList<string, double>();
sl.Add("A", 7);
sl.Add("B", 5);
sl.Add("C", 4);
sl.Add("D", 9);