mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-21 09:27:59 +02:00
Initial checkin
This commit is contained in:
parent
c74712dad9
commit
078564ac9e
3242 changed files with 1616395 additions and 0 deletions
37
IDE/Tests/Test1/src/HotSwap_Reflection.bf
Normal file
37
IDE/Tests/Test1/src/HotSwap_Reflection.bf
Normal file
|
@ -0,0 +1,37 @@
|
|||
#pragma warning disable 168
|
||||
|
||||
using System;
|
||||
|
||||
namespace IDETest
|
||||
{
|
||||
class HotSwap_Reflection
|
||||
{
|
||||
[Reflect]
|
||||
class ClassA
|
||||
{
|
||||
int mA;//ClassA_mA
|
||||
|
||||
public static Type GetMyType()
|
||||
{
|
||||
return typeof(ClassA);
|
||||
}
|
||||
}
|
||||
|
||||
public static void Test()
|
||||
{
|
||||
//Test_Start
|
||||
let t0 = ClassA.GetMyType();
|
||||
for (let field in t0.GetFields())
|
||||
{
|
||||
}
|
||||
let t1 = ClassA.GetMyType();
|
||||
for (let field in t1.GetFields())
|
||||
{
|
||||
}
|
||||
let t2 = ClassA.GetMyType();
|
||||
for (let field in t2.GetFields())
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue