1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-18 08:06:04 +02:00
Beef/IDE/Tests/Test1/src/HotSwap_Reflection.bf

38 lines
517 B
Beef
Raw Normal View History

2019-08-23 11:56:54 -07:00
#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())
{
}
}
}
}