jeudi 8 janvier 2015

How to check signature compatibility between EventInfo and MethodInfo in c#?


public static bool CheckSignature (EventInfo eventInfo, MethodInfo methodInfo)
{
//check signature
}


I want to check the signature(aka ReturnType and ParameterInfo) between an EventInfo and a MethodInfo before creating delegate from that methodInfo . I can get the ReturnType and ParameterInfo from MethodInfo but not from EventInfo. Is there anyway to achive?






Aucun commentaire:

Enregistrer un commentaire