mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-03 06:45:59 +02:00
Search base class for field
This commit is contained in:
parent
f19172e5b3
commit
6315d81207
1 changed files with 3 additions and 0 deletions
|
@ -994,6 +994,9 @@ namespace System.Reflection
|
||||||
if (fieldData.[Friend]mName == fieldName)
|
if (fieldData.[Friend]mName == fieldName)
|
||||||
return FieldInfo(this, fieldData);
|
return FieldInfo(this, fieldData);
|
||||||
}
|
}
|
||||||
|
var baseType = BaseType;
|
||||||
|
if (baseType != null)
|
||||||
|
return baseType.GetField(fieldName);
|
||||||
return .Err;
|
return .Err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue