title: Searching In c#
body: <p>i want to searching with ID in this Code 
  when the user write the id the information of this ID ( title , name , phone) display 
  How can i implement it ? </p>
  
  <pre><code>namespace Search
  {
   class Program
   {
       static void InputStudent(Student x)
       {
          Console.WriteLine("Please enter a User:");
          Console.WriteLine("User ID:");
          x.ID = int.Parse(Console.ReadLine());
          Console.WriteLine();
  
          Console.WriteLine("Titel:");
          x.Titel = Console.ReadLine();
  
          Console.WriteLine("Name:");
          x.Name = Console.ReadLine();
  
          Console.WriteLine("Telephone Number:");
          x.Telephone = int.Parse(Console.ReadLine());
          Console.WriteLine();  
      }
  
      static void Main()
      {
          Student[] st = new Student[3];
  
          for (int i = 0; i &lt; st.Length; i++)
          {
              st[i] = new Student();
              InputStudent(st[i]);
          }
  
          int IDs;
          Console.Write("Please enter the number of ID you want to search for ");
          IDs = Convert.ToInt32(Console.ReadLine());
      }
    }
  }
  </code></pre>