mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-19 00:20:25 +02:00
Improved reflection method invocation argument handling
This commit is contained in:
parent
fa3b69e0c7
commit
bc46807003
3 changed files with 15 additions and 6 deletions
|
@ -138,6 +138,9 @@ namespace System.Reflection
|
|||
int64 intVal = ToInt64(obj);
|
||||
switch (type.[Friend]mTypeCode)
|
||||
{
|
||||
case .Boolean:
|
||||
bool val = intVal != 0;
|
||||
return Variant.Create(type, &val);
|
||||
case .Float:
|
||||
float val = (.)intVal;
|
||||
return Variant.Create(type, &val);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue