In C#, one would use the is, or, and operators with braces which the compiler lowers into comparison checks.
example for C#:
csharp if (damageContext.damageType is EDamageType.COLLISION or EDamageType.FIRE or EDamageType.REGENERATION) return;
Note in the lowering process on the right side, the compiler attempts to use any possible optimisation to skip unnecessary checks. In this case it does a bounds check since two of the enum options were adjacent.
https://sharplab.io/#v2:EYLgxg9gTgpgtADwGwBYA+ABATARgLABQGAzAATakDCpA3oaQ+WRiqQLIAUAlLfY/wBEAhgFshAcxiUIAOwAuMBHNIATURKmyFS0gF5SMmAHdutVeskAVAJ4AHGHtIBRYWKt2YAOkoB5ADJ+AJIAyoE+AHKkAL4A3Hz8DACWAGakHGpumvKKcp4ZGjb2pIkAzs6uBR7e/kGhEaTQ5RYwhV4AYoEASk4NUE2ZrZ7dAOJO4U6dAIKWYeFc8Qn8GADscQT8UYSbBIQUFZLS2Tp064wk/ZVF+e5FNKSScjGkJTCP0VuEhDAyAK4iFzcHCd+OEIk4ADQLXwBEKzSGnBgdbrw/htSYw8LDFGMEZjCbTOELSZsHzDACqwXhUSAA