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
 1555: VA Outline confused by using statement in C#
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

brian_winfield
Senior Member

USA
33 Posts

Posted - May 07 2007 :  1:54:09 PM  Show Profile  Reply with Quote
It looks like VA Outline is getting confused by the using statements. When there is a using statement inside of a method the NEXT method in the file is shown as a child of the method that has the using.

for example:

public void Foo()
{

using ()
}

public void Bar()
{

}

Bar() is shown as a child of Foo

Brian S Winfield

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - May 07 2007 :  5:16:21 PM  Show Profile  Reply with Quote
In order to get something that would compile in VS2005 I ended up with:

using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;

namespace c_sharp_class_library.Bugs
{
    class bug_live_outline
    {
        public void Foo()
        {
            using(SqlConnection cn = new SqlConnection(""))
            {}
        }

        public void Bar()
        {

        }
    }
}


and I am not seeing any problems with live outline with this code. Can you try this code on your system?

zen is the art of being at one with the two'ness
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - May 07 2007 :  6:11:30 PM  Show Profile  Reply with Quote
It seems I spoke to soon. I can reproduce this in one file, but not in another file, using the same source code *puzzled* It seems the file name / class name matters.

case=6438

zen is the art of being at one with the two'ness
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - May 30 2007 :  11:56:57 PM  Show Profile  Reply with Quote
fixed in build 1557

Edited by - support on May 31 2007 12:37:30 AM
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