Below is the best way to compare the string in C# and ignore the case-sensitivity.
string str_to_compare = "vishalNEERAJ";
if(str_to_compare.Equals("vishalneeraj",StringComparison.InvariantCultureIgnoreCase))
{
//code goes here.
}
Note:-StringComparison.InvariantCultureIgnoreCase will ignore the case-sensitivity.