internal static MethodBase InternalGetMethodBaseFromMethodMessage(IMethodMessage msg)
{
if(null == msg)
{
return null;
}
Type t = RemotingServices.InternalGetTypeFromQualifiedTypeName(msg.TypeName);
if (t == null)
{
throw new RemotingException(
String.Format(
CultureInfo.CurrentCulture, Environment.GetResourceString(
"Remoting_BadType"),
msg.TypeName));
}
// Use the signature, type and method name to determine the
// methodbase via reflection.
Type[] signature = (Type[])msg.MethodSignature;
return GetMethodBase(msg, t, signature);
}