IDictionary: حذف یک آیتم از Dictionary در #C
سلام بر تمامی برنامه نویسان سی شارپ 😉 در این مطلب ، IDictionary: حذف یک آیتم از Dictionary در سی شارپ #C رو براتون آماده کردم. انشاالله که این کد براتون مفید باشه.
IDictionary: حذف یک آیتم از Dictionary :
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
public class MainClass
{
public static void Main()
{
IDictionary<string, decimal> salaryMap = new Dictionary<string, decimal>();
salaryMap.Add("S", 60.5M);
salaryMap.Add("W", 10.0M);
salaryMap.Add("J", 30.99M);
salaryMap.Remove("W");
}
}
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
public class MainClass
{
public static void Main()
{
IDictionary<string, decimal> salaryMap = new Dictionary<string, decimal>();
salaryMap.Add("S", 60.5M);
salaryMap.Add("W", 10.0M);
salaryMap.Add("J", 30.99M);
salaryMap.Remove("W");
}
}
برای اطلاعات بیشتر درباره ی IDictionary این لینک و این لینک و این لینک را مشاهده کنید.