-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEmp.cs
57 lines (46 loc) · 1.3 KB
/
Emp.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1._15thdec.Maxex
{
/*class Emp
{
private string name;
private int salary;
public Emp(String name, int salary)
{
this.name = name;
this.salary = salary;
}
public override string ToString()
{
return $"Name:{name},Salary{salary}";
}
class Company
{
}*/
/* static void Main(string[] args)
{
Emp em = new Emp("ABCD", 525);
Emp[] emm = new Emp[5];
Dictionary<string, int> empobj = new Dictionary<string, int>();
empobj.Add("ABC", 12500);
empobj.Add("XYZ", 135000);
empobj.Add("PQR", 110000);
empobj.Add("WXY", 14000);
empobj.Add("FGH", 50000);
foreach (var item in empobj)
{
Console.WriteLine(item);
}
SortedDictionary<string, int> empobje = new SortedDictionary<string, int>();
// empobje.Remove("XYZ", 13500);
foreach (var item in empobje)
{
Console.WriteLine(item);
}
Console.ReadLine();
}*/
}