mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 15:26:00 +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)
|
||||
return FieldInfo(this, fieldData);
|
||||
}
|
||||
var baseType = BaseType;
|
||||
if (baseType != null)
|
||||
return baseType.GetField(fieldName);
|
||||
return .Err;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue