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
 VAX 1845: Implement virtual methods failure
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - May 04 2011 :  12:03:05 AM  Show Profile  Reply with Quote
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() {}
}


sean
Whole Tomato Software

USA
2817 Posts

Posted - May 04 2011 :  03:04:07 AM  Show Profile  Reply with Quote
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
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - May 12 2011 :  12:44:51 AM  Show Profile  Reply with Quote
case=54585 is fixed in build 1848

Whole Tomato Software, Inc.
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