1
Vote

Cache closed generic MethodInfo's from CallGenericLoad()

description

CallGenericLoad is needed to asynchronously call a generic method with an arbitrary type parameter. Xbox doesn't contain the required overload of Type.GetMethod(), so a workaround is used to find the correct method info. To speed things up, I should add a Dictionary<Type, MethodInfo> to cache the resulting method infos. The dictionary should probably be cleared when Unload() is called.

comments