[Microsoft.Build.Engine] Update missing method exception type
authorMarek Safar <marek.safar@gmail.com>
Fri, 27 Feb 2015 18:08:33 +0000 (19:08 +0100)
committerMarek Safar <marek.safar@gmail.com>
Fri, 27 Feb 2015 18:08:33 +0000 (19:08 +0100)
mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/MemberInvocationReference.cs

index 6430992fba9f81fc08bedd6bf33e0a6c6e7a00ed..e97c4c75b31418222021ed49eef8978ab98e4445 100644 (file)
@@ -105,7 +105,7 @@ namespace Microsoft.Build.BuildEngine
                        object value;
                        try {
                                value = type.InvokeMember (member_name, flags, null, target, args, CultureInfo.InvariantCulture);
-                       } catch (MissingFieldException) {
+                       } catch (MissingMethodException) {
                                //
                                // It can be field/constant instead of a property
                                //