how can I reliably get MethodInfo (reflection) from IMethodSymbol (Roslyn syntax tree). I can get the Type from the IMethodSymbol, and the type has many methods, of which one matches the IMethodSymbol instance.
e.g.
int i = 0;
i.Equals(5);
where the IMethodSymbol identifies 'Equals'
Note that there are 2 [Equals] methods on an [Int32] type, one taking and [Object], the other taking [Int32] parameter.
I'm parsing scripts, I don't have any workspace instances.
Any ideas? Stevo
Aucun commentaire:
Enregistrer un commentaire