anonymous, dynamic, variable classes and methods

To call a method by dynamic name you can do this:

$methodName=”MyMethod”; $result=$methodName();

To create a class by dynamic name you can do this:

$className=”MyClass”; $classVar=new $className;

To call any method by dynamic name in previously initialized class you can do this:

$methodName=”MyMethod”; $result=$classVar->$methodName();

Generic Configuration Section Handler

Check this link. It is a good way to deal with configuration sections in .NET environment.