Hola Yusuf aqui te dejo un pequeño codigo utilizando array y linq, en lo cual me base en las respuestas y codigos de Diego y Leandro.
Te dejo el codigo aqui, Revisalo, modificalo y dale run.
Informacion sobre la palabra reservada params.
public class Program
{
public static void Main()
{
Program p = new Program();
string test = "hola";
string test1 = "hola";
string test2 = "hola";
Console.WriteLine("Usando Array");
Console.WriteLine(p.StrAllEqualsWithArray("hola", test, test1, test2));
Console.WriteLine(p.StrAllEqualsWithArray("hola", test, test1, test2, "hola"));
Console.WriteLine(p.StrAllEqualsWithArray("hola", test, test1, test2, "hola", "aloha"));
Console.WriteLine(p.StrAllEqualsWithArray("hola", "hola", "aloha", "hola", "aloha"));
Console.WriteLine(p.StrAllEqualsWithArray("hola", "hola", "hola", "hola", "hola"));
Console.WriteLine(p.StrAllEqualsWithArray("hola", "hola", "hola", "hola", "hola", test, test1, test2));
Console.WriteLine("Usando Linq");
Console.WriteLine(p.StrAllEqualsWithLinq("hola", test, test1, test2));
Console.WriteLine(p.StrAllEqualsWithLinq("hola", test, test1, test2, "hola"));
Console.WriteLine(p.StrAllEqualsWithLinq("hola", test, test1, test2, "hola", "aloha"));
Console.WriteLine(p.StrAllEqualsWithLinq("hola", "hola", "aloha", "hola", "aloha"));
Console.WriteLine(p.StrAllEqualsWithLinq("hola", "hola", "hola", "hola", "hola"));
Console.WriteLine(p.StrAllEqualsWithLinq("hola", "hola", "hola", "hola", "hola", test, test1, test2));
}
public bool StrAllEqualsWithArray(string key, params string[] values)
{
bool flag = true;
for (int i = 0; i < values.Length; i++)
{
if (values[i] != key)
{
flag = false;
break;
}
}
return flag;
}
public bool StrAllEqualsWithLinq(string key, params string[] values)
{
return values.All(val => val == key);
}
}