I have a dynamic class that serves as a storage container for configuration settings. The settings are variables of that class and it has methods to read from and write to a configuration file, database etc. Now I want to trigger writing to the persistant storage whenever a class variable is changed. As the variables are added dynamicall...
Let me present the problem first.
I need to load all images that I have used in my project externally without embedding.
The images are present either in skins or as icons for items in trees.
I came across the IconUtility class here
I was able to modify it and use it for trees but the problem is we cannot use iconutility for the same com...
I'm clearly missing something here.
I need to fill methods of dynamic AS3 class from an array (see silly example below).
But when I call those methods, all of them appear to be the same method. In the example below, all methods are foobar1.
If I create methods by hand, without a loop, everything is fine.
Any clues?
package foo
{...
Hi,
I'm new to reflections. I need to create a class which inherits from a parent class. I need to create a readonly property. This property calls an existing function in the parent class by passing an argument 25.
Everything works fine, except that I am unable to pass the value 25 to the function being called. Below is the code that ge...
Hi. I'm trying to put together a list of frameworks/languages support run-time class creation. For example in .NET you can use the System.Reflection.Emit library to emit new classes at run time. If you could mention other frameworks/languages that support this (or some variation of it), that'd be really helpful.
Thanks :)
...
I made a program that achieve a knowledge representation, its good but I thing it could be better if I can create and destroy classes on the fly.
...