How to Use IndexOf in C#: A Simple Example