1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Improve Enum.Parse functionality

This commit is contained in:
disarray2077 2022-02-14 13:41:27 -03:00 committed by GitHub
parent 63ef0fed7a
commit 9866b1fb39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,6 +25,8 @@ namespace System
{
if (str.Equals(name, ignoreCase))
return .Ok(data);
if (int64.Parse(str) case .Ok(let val) && val == (.)data)
return .Ok(data);
}
return .Err;