mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-18 16:10:26 +02:00
Enum fixes, small reflection fixes
This commit is contained in:
parent
973b5e73cf
commit
dffde00a6a
11 changed files with 100 additions and 35 deletions
|
@ -39,7 +39,7 @@ namespace System.Reflection
|
|||
{
|
||||
extension TypeInstance
|
||||
{
|
||||
public override FieldInfo? GetField(String fieldName)
|
||||
public override Result<FieldInfo> GetField(String fieldName)
|
||||
{
|
||||
for (int32 i = 0; i < mFieldDataCount; i++)
|
||||
{
|
||||
|
@ -47,7 +47,7 @@ namespace System.Reflection
|
|||
if (fieldData.mName == fieldName)
|
||||
return FieldInfo(this, fieldData);
|
||||
}
|
||||
return null;
|
||||
return .Err;
|
||||
}
|
||||
|
||||
public override FieldInfo.Enumerator GetFields(BindingFlags bindingFlags = cDefaultLookup)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue