Program.cs
 

using System;

namespace MyApplication
{
  class Program
  {
    static void Main(string[] args)
    {
      string myString = "Hello";
      Console.WriteLine(myString.IndexOf("e"));
    }
  }
}

Result:
1