0xd4d / dnlib

Reads and writes .NET assemblies and modules
MIT License
2.13k stars 582 forks source link

Implementation Type Changing #365

Closed xxCherry closed 4 years ago

xxCherry commented 4 years ago

Let's say i have this method declaration => System.Int32 System.IComparable`1<Dummy.SomeClass>::CompareTo(Dummy.SomeClass) How can i change Dummy.SomeClass to for example Test.SomeClass by using typeDef.Overrides.

0xd4d commented 4 years ago

Sounds like it's the same kind of issue as https://github.com/0xd4d/dnlib/issues/359 . Just let the C# compiler generate the code, have a look at it in the locals window etc (see linked issue).

xxCherry commented 4 years ago

Okay, i'll try.

xxCherry commented 4 years ago

I figured out.