private bool CheckTypeMatch(ParameterInfo[] methodParameters, Type[] callParameterTypes)
{
if (methodParameters.Length < callParameterTypes.Length)
{
return false;
}
for (int index = 0; index < callParameterTypes.Length; index++)
{
Type type = methodParameters[index].ParameterType;
//todo: check metro type usage
if (callParameterTypes[index] != null && !type.Equals(callParameterTypes[index]))
{
return false;
}
}
return true;
}