History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-6547
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Eugene Pasynkov
Reporter: Andrey Simanovsky
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
ReSharper

Find usages of finalizer

Created: 05 Aug 06 02:59   Updated: 20 Oct 06 17:12
Component/s: Code View - Search
Fix Version/s: Future Versions
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 201
Old URL: http://www.intellij.net/tracker/resharper/viewSCR?publicId=6547


 Description  « Hide
At present no usages of finalizer are found. This is untrue if finalizers are defined in derived classes. Find usages for a finalizer should find finalizers that immediately override Finalize in derived classes.

 All   Comments   Work Log   Change History      Sort Order:
Ilya Ryzhenkov - 07 Aug 06 18:36
Re: #6547- Find usages of finalizer
I don't see any reason for searching usages of finalizer - it is not visible outside of the type. It's better doing "Go to inheritors" and "Go to base" on finalizer.

Dmitry Shaporenkov - 07 Aug 06 18:36
Re: #6547- Find usages of finalizer
What's wrong with Goto Inheritors?

Vladimir Reshetnikov - 20 Oct 06 17:12
Also, finalizer can be called explitly thru the delegate. Though it is not recommended.
delegate void FinalizeDelegate();
class Stuff
{
    ~Stuff()
    {
        
    }

    void Foo()
    {
        ((FinalizeDelegate)Finalize)();
    }

    static void Main()
    {
        new Stuff().Foo();
    }
}