I am beginner in for c#
Please help me for compilation of this code. Also please tell me about these error.

using System; 

class SearchEmp 
    String[] Name= {"Aslam","Irfan","Afridi","Junaid"}; 

    SearchEmp(string name){ 
        this.name = name; 

    public void Search(){ 
        name= "Afridi"; 
    private readonly string name; 

    public static void Main(){ 
    SearchEmp E1= new SearchEmp("Kareem"); 

Also please tell me about these error.

You forgot to list the errors, and your title for this thread is uninformative.


Compiling the source code....
$/usr/local/bin/mcs /tmp/135963473426049/csharp135963473426049.cs 2>&1
/tmp/135963473426049/csharp135963473426049.cs(12,3): error CS0191: A readonly field `SearchEmp.name' cannot be assigned to (except in a constructor or a variable initializer)
Compilation failed: 1 error(s), 0 warnings

A readonly field `SearchEmp.name' cannot be assigned to

So...what does that tell you? It's not like the error is ambiguous or unclear. SearchEmp.name is defined as readonly, yet you try to assign to it as if it were not readonly.

please tell me how i can correct it?
or please correct that code and post here
i am not good with programming

Wow, just...wow. See that word in your code that says readonly? Make it go away.

Thankkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk youuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
dear deceptikon
now its working

since the problem is solve pls mark it as solved