Given the following (minimal) class:
public class TestEvents
{
public delegate void MyDelegate(params string[] data);
public TestEvents()
{
}
}
If I retrieve the Type
object representing this class from an assembly how can I identify all nested delegates defined in this class? I can find a lot of information how to invoke a delegate via reflection, but nothing on how to obtain a suitable object from a Type
object in the beginning (without knowing the delegates name).
Aucun commentaire:
Enregistrer un commentaire