Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1555: VA Outline confused by using statement in C#

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
brian_winfield Posted - May 07 2007 : 1:54:09 PM
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
3   L A T E S T    R E P L I E S    (Newest First)
support Posted - May 30 2007 : 11:56:57 PM
fixed in build 1557
feline Posted - May 07 2007 : 6:11:30 PM
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
feline Posted - May 07 2007 : 5:16:21 PM
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?

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