I am beginner in for c#
Please help me for compilation of this code. Also please tell me about these error.
Thanks
using System;
class SearchEmp
{
String[] Name= {"Aslam","Irfan","Afridi","Junaid"};
SearchEmp(string name){
this.name = name;
}
public void Search(){
name= "Afridi";
if(Name[0]==name||Name[1]==name||Name[2]==name||Name[3]==name){
Console.WriteLine("FOUND");
}
}
private readonly string name;
public static void Main(){
SearchEmp E1= new SearchEmp("Kareem");
E1.Search();
}
}