We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
that is all
The text was updated successfully, but these errors were encountered:
I need to look up a way to determine if the variable is int-like i guess
Sorry, something went wrong.
So apparently this is the correct way of doing it
private static HashSet<Type> NumericTypes = new HashSet<Type> { typeof(int), typeof(uint), typeof(double), typeof(decimal), ... }; internal static bool IsNumericType(Type type) { return NumericTypes.Contains(type) || NumericTypes.Contains(Nullable.GetUnderlyingType(type)); }
sigh
Just literally have a hash set of compatible types :/
No branches or pull requests
that is all
The text was updated successfully, but these errors were encountered: