I have 2 method references that point to the same generic definition ...

imagine

    interface IFoo<T>
    {
        void Foo(T obj);
    }

    class FooImplementor : IFoo<int>
    {

        public void Foo(int obj)
        {
            int x = 22;
        }
    }

I have one methodreference

{System.Void TestProject.FooImplementor::Foo(System.Int32)}

I know (and can map to IFoo'1<System.Int32>)

I have another methodreference maybe it can map?

{System.Void TestProject.IFoo`1<System.Int32>::Foo(T)} (obviously true)

I have another methodreference maybe it can map?

{System.Void TestProject.IFoo`1<System.String>::Foo(T)} (obviously false)


I basically want to figure out which reference can possibly come back to the
call. This includes things like where clauses contravariance etc.  Of course
this also supports things where I am partially open ...

eg: Foo<string, V> where V:Something

does not map to

Implementor<string, SomethingElse> (SomethingElse !: Something

Again I can write this but figured someone probably already has.

-- 
Les erreurs de grammaire et de syntaxe ont été incluses pour m'assurer de
votre attention

-- 
--
mono-cecil

Reply via email to