mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-27 20:18:01 +02:00
Improved boxed value support in attribute data
This commit is contained in:
parent
2dcc9552e2
commit
a34e5a737d
10 changed files with 222 additions and 9 deletions
|
@ -71,6 +71,22 @@ namespace System
|
|||
}
|
||||
}
|
||||
|
||||
public Type RawVariantType
|
||||
{
|
||||
get
|
||||
{
|
||||
if (mStructType == 2)
|
||||
{
|
||||
return (Type)Internal.UnsafeCastToObject((void*)mData);
|
||||
}
|
||||
if (mStructType <= 1)
|
||||
{
|
||||
return Internal.UnsafeCastToObject((void*)mData).[Friend]RawGetType();
|
||||
}
|
||||
return (Type)Internal.UnsafeCastToObject((void*)(mStructType & ~3));
|
||||
}
|
||||
}
|
||||
|
||||
public bool HasValue
|
||||
{
|
||||
get
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue