Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / October 2004

Tip: Looking for answers? Try searching our database.

VS.NET 2003 thinks C# has templates

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Christoph Nahr - 08 Oct 2004 08:44 GMT
I don't know if this will be fixed this side of Whidbey, but I just
discovered an IntelliSense error in Visual Studio .NET 2003.

When you type "if (foo bar >)", place the cursor left of "bar", and
type "<", IntelliSense pops up a list of types -- apparently thinking
you're about to define a template!

This curious sequence "(foo bar >)" can appear quite naturally when
the original line was "(bar > foo)" and I'm inverting the direction of
comparison via cut & paste, by the way.  That's how I found the error.
Signature

http://www.kynosarges.de

Scott M. - 11 Oct 2004 16:28 GMT
Are you sure you just haven't stumbled on the VS.NET attribute syntax?

I can't say about C#, but in VB.NET, if you want to mark a class member with
a compiler flag, you put <> in front of the member and inside the <>,
intelliSense will pop up to help you decide which attribute to use.

>I don't know if this will be fixed this side of Whidbey, but I just
> discovered an IntelliSense error in Visual Studio .NET 2003.
[quoted text clipped - 6 lines]
> the original line was "(bar > foo)" and I'm inverting the direction of
> comparison via cut & paste, by the way.  That's how I found the error.
Christoph Nahr - 12 Oct 2004 06:53 GMT
>Are you sure you just haven't stumbled on the VS.NET attribute syntax?
>
>I can't say about C#, but in VB.NET, if you want to mark a class member with
>a compiler flag, you put <> in front of the member and inside the <>,
>intelliSense will pop up to help you decide which attribute to use.

Hmm... I guess that's another possible source for the bug but it's
still a bug nonetheless. :)  C# surrounds attributes are by square
brackets, not angled ones.  I can't think of any C# language element
that is surrounded by <>.
Signature

http://www.kynosarges.de


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.