Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 VAX 1845: Implement virtual methods failure

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 - May 04 2011 : 12:03:05 AM
Given the following base class:
public class Test
{
 ... some public methods ...
 protected virtual void Function1() {}
 protected virtual int Function2() { return 0; }
}


Creating a new class
public class MyClass : Test
{
}

and now selecting the VA command "implement virtual methods...", selecting all methods, VA will create this:

public class MyClass : Test
{
 public protected virtual void Function1() {}
 public protected virtual int Function2() {}
}


2   L A T E S T    R E P L I E S    (Newest First)
support Posted - May 12 2011 : 12:44:51 AM
case=54585 is fixed in build 1848
sean Posted - May 04 2011 : 03:04:07 AM
This has been fixed in the next build. Running the command results in these implementations:

protected override void Function1()
{
}

protected override int Function2()
{
}

case=54585

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