Easiest way to compare arrays in C#

In Java, Arrays.equals() allows to easily compare the content of two basic arrays (overloads are available for all the basic types). Is there such a thing in C#? Is there any “magic” way of comparing …

Check if enum exists in Java

Is there anyway to check if an enum exists by comparing it to a given string? I can’t seem to find any such function. I could just try to use the valueOf method and catch an exception but I’v been …