Closed AntonZiminSaritasa closed 2 years ago
Actually, it throws another exception:
Unhandled exception. System.ArgumentException: Type provided must be an Enum.
I'm using it incorrectly. Correct usage:
StringUtils.ParseOrDefault(null, 0)
You are right, but I do believe that the StringUtils.ParseOrDefault<int>
form is still valid. I will update the lib to handle these calls using fallback methods.