[Mono.Debugger.Soft] Oops, fixed build.
authorJeffrey Stedfast <jeff@xamarin.com>
Mon, 30 Jan 2012 17:29:49 +0000 (12:29 -0500)
committerJeffrey Stedfast <jeff@xamarin.com>
Mon, 30 Jan 2012 17:29:49 +0000 (12:29 -0500)
mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/MethodMirror.cs

index d5fbe8c80866f0d6724c6c04d53dd62916794393..b53ae37a5ebe0e3844c87cf4f862523d342a5b5a 100644 (file)
@@ -71,22 +71,22 @@ namespace Mono.Debugger.Soft
                        }
                }
 
-               void GetInfo () {
+               MethodInfo GetInfo () {
                        if (info == null)
                                info = vm.conn.Method_GetInfo (id);
+                       
+                       return info;
                }
 
                public int MetadataToken {
                        get {
-                               GetInfo ();
-                               return info.token;
+                               return GetInfo ().token;
                        }
                }
 
                public MethodAttributes Attributes {
                        get {
-                               GetInfo ();
-                               return (MethodAttributes)info.attributes;
+                               return (MethodAttributes) GetInfo ().attributes;
                        }
                }
 
@@ -163,8 +163,7 @@ namespace Mono.Debugger.Soft
                public bool IsGenericMethodDefinition {
                        get {
                                vm.CheckProtocolVersion (2, 12);
-                               GetInfo ();
-                               return info.is_gmd;
+                               return GetInfo ().is_gmd;
                        }
                }