Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 VA 2399: VA View shows virtual methods 2x
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2320 Posts

Posted - Feb 26 2021 :  11:08:05 AM  Show Profile  Reply with Quote
Having a base class with virtual methods which are overridden in a derived class, VA View shows me those double, once as declared in the base class and then as declared in the derived class.
C# 8.0, VS2019 16.8.6, .NET Core 3.1

As seen in the VAView, tool tip from both methods:







And as seen by the Class View from VS:


Class definition cut right out from the sources... many other methods removed

public class IOPort : IEquatable<IOPort>
{
	public virtual bool CanRead()
	{
		return false;
	}
// implement the interface through Intellisense
}

public class InputPort : IOPort
{
	public override bool CanRead()
	{
		return true;
	}
}

feline
Whole Tomato Software

United Kingdom
18749 Posts

Posted - Feb 26 2021 :  12:30:27 PM  Show Profile  Reply with Quote
Thank you for the very clear bug report. Unfortunately I cannot reproduce this at all here, and I have tried on two different systems, and a couple of different ways.

However, looking for a bug report where this happens, I have noted that duplicate entries can show up in the HCB when VA's symbol database has become corrupted due to complex C# NuGet package code:

case=142203

which I discovered looking into a problem you were having, so I think that is what is going on here.

Unfortunately I don't currently have an estimate for when this will be looked at, but we are still aware of it, and it is still a bug that needs fixing.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000