Looking at the following if statement:
var veryLongVariableName = 7;
if (veryLongVariableName > 5 && veryLongVariableName < 18 && veryLongVariableName != 13)
{
//do something...
}
Is there way to write this in a simpler way, so variable name would be not get repeated 3 times inside of if expression? I am looking for a solution that would also work for other value types/reference types.