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; } } }