Bug 32704 - Class decompiler does not display virtual methods of ios sdk
Summary: Class decompiler does not display virtual methods of ios sdk
Status: VERIFIED UPSTREAM
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: unspecified
Hardware: PC Windows
: Low enhancement
Target Milestone: 4.2.0 (C8)
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-08-03 07:21 UTC by softlion
Modified: 2016-08-25 21:51 UTC (History)
6 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED UPSTREAM

Description softlion 2015-08-03 07:21:10 UTC
I'm heavily using Resharper decompiler in Visual Studio to glance at the base classes instead of going to the documentation websites.
In all apps the decompiler does its work nicely. 
But with Xamarin ios the abstract classes seems to have no method.

In the example below, the class is SKPaymentTransactionObserver.
The decomilation shows no method at all.
But but if you create a class and derive from SKPaymentTransactionObserver, the visual studio tip displays the list of methods that are availablefor overriding correctly.

Any way to get the decompilation working correctly?
It helps prevent going to the documentations website, and answers lots of questions.


// Decompiled with JetBrains decompiler
// Type: StoreKit.SKPaymentTransactionObserver
// Assembly: Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065
// MVID: 0264838E-E7BF-476E-A788-75DA1CE8B2A7
// Assembly location: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Xamarin.iOS.dll

using Foundation;
using ObjCRuntime;
using System;

namespace StoreKit
{
  /// <summary>
  /// Base class used to receive notifications from the SKPaymentQueue.
  /// </summary>
  [Protocol]
  [Register("SKPaymentTransactionObserver", false)]
  [Model]
  public abstract class SKPaymentTransactionObserver : NSObject, ISKPaymentTransactionObserver, INativeObject, IDisposable
  {
  }
}
Comment 1 Adrian Alonso 2016-05-12 19:32:09 UTC
Since the out of the box of VS shows the method correctly marking the bug as resolved/upstream.