以下のインターフェースで定義された関数を実装するにはどうすればよいですか?以下のようにVS2010で実装したとき。MyTypeがグレー表示になり、タイプが認識されなくなりますか?ありがとう!
public interface IExample
{
T GetAnything<T>();
}
public class MyType
{
//getter, setter here
}
public class Get : IExample
{
public MyType GetAnything<MyType>()
{ ^^^^^^^ ^^^^^^
MyType mt = new MyType();
^^^^^^^^^^^^^^^^^^^^^^^^^^ /* all greyed out !!*/
}
}