mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-12 05:14:10 +02:00
Field static struct FieldInfo set
This commit is contained in:
parent
d5c336ffab
commit
4d232c95cb
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ namespace System.Reflection
|
||||||
public Result<void, Error> SetValue(Object obj, Object value)
|
public Result<void, Error> SetValue(Object obj, Object value)
|
||||||
{
|
{
|
||||||
void* dataAddr = ((uint8*)Internal.UnsafeCastToPtr(obj));
|
void* dataAddr = ((uint8*)Internal.UnsafeCastToPtr(obj));
|
||||||
if (mTypeInstance.IsStruct)
|
if ((obj != null) && (mTypeInstance.IsStruct))
|
||||||
{
|
{
|
||||||
Type boxedType = obj.[Friend]RawGetType();
|
Type boxedType = obj.[Friend]RawGetType();
|
||||||
bool typeMatched = false;
|
bool typeMatched = false;
|
||||||
|
@ -108,7 +108,7 @@ namespace System.Reflection
|
||||||
public Result<void, Error> SetValue(Object obj, Variant value)
|
public Result<void, Error> SetValue(Object obj, Variant value)
|
||||||
{
|
{
|
||||||
void* dataAddr = ((uint8*)Internal.UnsafeCastToPtr(obj));
|
void* dataAddr = ((uint8*)Internal.UnsafeCastToPtr(obj));
|
||||||
if (mTypeInstance.IsStruct)
|
if ((obj != null) && (mTypeInstance.IsStruct))
|
||||||
{
|
{
|
||||||
Type boxedType = obj.[Friend]RawGetType();
|
Type boxedType = obj.[Friend]RawGetType();
|
||||||
bool typeMatched = false;
|
bool typeMatched = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue