嗨,我有包含方法的对象:
{Boolean Deserialize(System.String, HardwareItemDescriptionControlDriver ByRef)}
当我试图找到这种方法时:
 Type elementType = typeof(HardwareItemDescriptionControlDriver);
 typesParameters = new Type[] { typeof(String), elementType.MakeByRefType() };
 methodInfo = elementType.GetType().GetMethod("Deserialize", typesParameters);
方法信息为空
我看不出问题出在哪里-我还尝试使用参数找到此方法:
typesParameters = new Type[] { typeof(String), elementType }; 
但它也不起作用,谢谢!