Closed alexguirre closed 4 years ago
If the Invoke method of the PropertyType is overloaded, the following code will throw an AmbiguousMatchException.
Invoke
PropertyType
MethodInfo invokeMethod = prop.PropertyType.GetMethod("Invoke");
We should use the GetMethod overloads to only get the methods with either of the following signatures
GetMethod
void Invoke(); void Invoke(MenuItem item);
Additionally, if both are present, which one should we take? Should we execute both?
See #35.
If the
Invoke
method of thePropertyType
is overloaded, the following code will throw an AmbiguousMatchException.We should use the
GetMethod
overloads to only get the methods with either of the following signaturesAdditionally, if both are present, which one should we take? Should we execute both?
See #35.