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

Key: RSRP-29370
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Sergey Shkredov
Reporter: Vladimir Reshetnikov
Votes: 0
Watchers: 1
Operations

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

Extract class from unsafe parameters doest not produce usnafe class

Created: 05 Oct 06 08:49   Updated: 27 Mar 08 18:49
Component/s: Refactorings - Extract Class from Method Parameters
Fix Version/s: Future Versions
Security Level: Everybody (All jira users)

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

Build: 263


 Description  « Hide
class Stuff
{
    static unsafe void Foo(int* ptr, object obj){}
}

Extract class from parameters of unsafe method Foo.

class Stuff
{
    static unsafe void Foo(Params Params){}
}

internal class Params // missing 'unsafe'
{
    private readonly int* _ptr;
    private readonly object _obj;
    public Params(int* ptr, object obj) {
        _ptr = ptr;
        _obj = obj;
    }

    public int* Ptr
    {
        get { return _ptr; }
    }

    public object Obj
    {
        get { return _obj; }
    }
}


 All   Comments   Work Log   Change History      Sort Order: