The problem is that the FullName-property doesn't supply the needed
information.
When called on the method mentioned above it looks like this:
System.Void Foo ( System.Int32, S, T )
So there are 2 things lacking:
* The amount of generic parameters
* The information which position the generic parameters have
This could be a problem in this case:
public class Base {
public void Foo<S, T>(int i, S s, T t) { }
}
public class Derived : Base {
public void Foo<T, S>(int i, S s, T t) { }
}
If we could get a string that doesn't contain the name of the
placeholder (S, T) but rather the position (!!0, !!1) we could better
identify the methods.
Best regards,
C. S.
On Aug 2, 2:35 pm, Jb Evain <[email protected]> wrote:
> On Tue, Aug 2, 2011 at 2:29 PM, [email protected]
>
> <[email protected]> wrote:
> > For example:
>
> > void Foo <S, T> ( int i, S s, T t );
>
> > to something like:
>
> > System.Void Foo`2 ( System.Int32, !!0, !!1 )
>
> You can use the fullname of the definition of a method.
>
> Jb
--
--
mono-cecil