What is the proper way of getting a member of a type using a metadata token of that member (with reflection)?
MemberInfo mi = type.GetMembers(bindingFlags).FirstOrDefault(m => m.MetadataToken == metadataToken);Answer1:
The <em>Module</em> class provides a set of <em>Resolve</em> methods that can find the member, e.g.
MemberInfo mi = type.Module.ResolveMember(metadataToken);
Edit: <em>ResolveMember</em> cannot resolve properties and events, so the originally suggested approach has to be used.