public interface Handles<T>
{
void Handle(T item);
}
class Handler1 : Handles<int>
{
public void Handle(int item)
{
Console.WriteLine("foo");
}
}
class Whatever<TSomething> {
Handles<TSomething> toCall;
void Bar(TSomething obj) {
toCall(obj);
}
}
When I go through this code ...
For the Handles<int> I get ... "System.Void
TestProject.Handler1::Handle(System.Int32)"
For the Handles<T> I get ... System.Void TestProject.Handles`1::Handle(T)
everything makes sense so far. however when I look at the third.
System.Void TestProject.Whatever`1<TSomething>::Handle(T)
but here T is going to be TSomething. Is there any easy way of figuring out
this? In other words I want to tie together in this case that T is
TSomething does this make sense?
Cheers,
Greg
--
Les erreurs de grammaire et de syntaxe ont été incluses pour m'assurer de
votre attention
--
--
mono-cecil