RosettaCodeData/Task/Reflection-List-methods/Elena/reflection-list-methods.elena

21 lines
270 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
import system'routines;
import system'dynamic;
import extensions;
class MyClass
{
myMethod1() {}
myMethod2(x) {}
}
2026-02-01 16:33:20 -08:00
public Program()
2023-07-01 11:58:00 -04:00
{
var o := new MyClass();
2024-03-06 22:25:12 -08:00
o.__getClass().__getMessages().forEach::(p)
2023-07-01 11:58:00 -04:00
{
2026-02-01 16:33:20 -08:00
Console.printLine("o.",p)
2023-07-01 11:58:00 -04:00
}
}