Test All Variables in an Array C#

So lets say I have an array:

int[] num;

And then I assigned 3 variables in the array.

num[0] = 1;
num[1] = 2;
num[2] = 3;

But now, I want to do:

if (num[0] == 5 && num[1] == 5 && num[2] == 5) {
    //Do stuff
}

Is there anyway to test all the variables at once? Like:

if (num[All Numbers] == 5){
}

I hope this makes sense, and thank you!

bool AllSame(int value){
for(int i = 0; i < num.Length;i++)
{
if(num != value)return false;
}
return true;
}
you can also use extension:
public static Utility{
public static bool AllSame(this int[] num, int value){
for(int i = 0; i < num.Length;i++)
{
if(num != value)return false;
}
return true;
}
}

You can use Linq:

num.All( n => n == 5 )