[Mono.Debugger.Soft] Reverted non-working support for MethodMirror.IsGenericMethod...
authorJeffrey Stedfast <jeff@xamarin.com>
Wed, 15 Feb 2012 17:03:14 +0000 (12:03 -0500)
committerJeffrey Stedfast <jeff@xamarin.com>
Wed, 15 Feb 2012 17:03:14 +0000 (12:03 -0500)
mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/MethodMirror.cs

index 46fcbe5c6d538e998a4ed1a19f134488bc3a0746..79e3c741c9cef6abec76dadc132a412a184ed996 100644 (file)
@@ -167,13 +167,11 @@ namespace Mono.Debugger.Soft
                        }
                }
 
+               // Since protocol version 2.12
                public bool IsGenericMethod {
                        get {
-                               if (vm.Version.AtLeast (2, 12)) {
-                                       return GetInfo ().is_generic_method;
-                               } else {
-                                       return Name.IndexOf ('`') != -1;
-                               }
+                               vm.CheckProtocolVersion (2, 12);
+                               return GetInfo ().is_generic_method;
                        }
                }