Jump to content

Reflection/List properties: Difference between revisions

m
m (syntax highlighting fixup automation)
imported>Arakov
Line 98:
 
=={{header|Elena}}==
ELENA 56.0x :
<syntaxhighlight lang="elena">import system'routines;
import system'dynamic;
Line 105:
class MyClass
{
prop int X : prop;
prop string Y : prop;
}
 
public program()
{
Line 117:
this Y := "String";
};
 
MyClass.__getProperties().forEach:(p)
{
console.printLine("o.",p,"=",cast MessageName(p).getPropertyValue(o))
}
}</syntaxhighlight>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.