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 / February 2004

Tip: Looking for answers? Try searching our database.

CodeElementFromPoint Bug?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anon - 30 Jan 2004 16:08 GMT
I've found a "feature" of the extensibility model that is driving me nuts.
In C# and J#, if you call CreateElementFromPoint from the filecodemodel and
ask for the class for the given point, the routine returns a function if the
point indicated is in a function. This seems pretty bone-headed to me. Am I
missing something? Is this a bug? Is there a good workaround?
Carlos J. Quintero - 05 Feb 2004 14:59 GMT
Yes, that feature is not reliable yet (in MS words), varying from language
to language.

As workaround you must travel the FileCodeModel from top to down recursively
until you reach the closest code element of the requested kind that contains
the line.

Signature

Carlos J. Quintero (Visual Developer - .NET MVP)

> I've found a "feature" of the extensibility model that is driving me nuts.
> In C# and J#, if you call CreateElementFromPoint from the filecodemodel and
> ask for the class for the given point, the routine returns a function if the
> point indicated is in a function. This seems pretty bone-headed to me. Am I
> missing something? Is this a bug? Is there a good workaround?

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.