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:
parent
63ef0fed7a
commit
9866b1fb39
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue