次のように Web コントロールを作成したとします。
public class TestControl<T> : WebControl
{
...
}
コードを使用せずにそのコントロールを .aspx ページに配置する方法はありますか? 私は本当に次のようなことができるようになりたいです:
<controls:TestControl<int> runat="server" />
しかし、私が知る限り、ジェネリック パラメータを渡す方法はありません。私はウェブで検索してみましたが、これを見つけましたhttp://forums.asp.net/t/1309629.aspx、これはまさに私が求めているもののようですが、誰もその男が何を望んでいるのかを理解していないようで、 StackOverflow で同様のものを見つけることができません。