Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 VA 2399: VA View shows virtual methods 2x

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Uniwares Posted - Feb 26 2021 : 11:08:05 AM
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;
	}
}
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Feb 26 2021 : 12:30:27 PM
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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000