Let's say I have two types in my program,
. Both have a
static void Main(string args)
. To compile this program, a compiler flag
Is it possible to determine at runtime which of the two types contains the entry point, i.e., to get a
pointing me to the correct class or the correct
UPD: to be more precise, is it possible to do so from a class library linked to the main application (i.e., without prior knowledge of possible options)?