Attempts to get the enum by this name.
The found enum or null.
The name to get.
The type of the enum.