mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-20 08:58:00 +02:00
Removed 'internal' protection - it's all about [Friend] now
This commit is contained in:
parent
81af04a1ce
commit
14ac27c977
119 changed files with 1339 additions and 1388 deletions
|
@ -8,7 +8,7 @@ namespace System
|
|||
{
|
||||
for (var field in type.GetFields())
|
||||
{
|
||||
if (field.mFieldData.mConstValue == iVal)
|
||||
if (field.[Friend]mFieldData.[Friend]mConstValue == iVal)
|
||||
{
|
||||
strBuffer.Append(field.Name);
|
||||
return;
|
||||
|
@ -23,8 +23,8 @@ namespace System
|
|||
var typeInst = (TypeInstance)typeof(T);
|
||||
for (var field in typeInst.GetFields())
|
||||
{
|
||||
if (str.Equals(field.mFieldData.mName, ignoreCase))
|
||||
return .Ok(*((T*)(&field.mFieldData.mConstValue)));
|
||||
if (str.Equals(field.[Friend]mFieldData.mName, ignoreCase))
|
||||
return .Ok(*((T*)(&field.[Friend]mFieldData.mConstValue)));
|
||||
}
|
||||
|
||||
return .Err;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue