http://d.hatena.ne.jp/akiramei/20071010/1192038349 ↑はるか昔に似たようなことやった気がしていたのですが、はてなで日記を書く前でした。折角なので、数年間更新していない自分のHPからコードを持ってきてGeneric対応させてみました。当時(2003年)は、RealProxyがマイブームだった模様(笑)。 using System; using System.Collections.Generic; using System.Reflection; using System.Runtime.Remoting.Messaging; using System.Runtime.Remoting.Proxies; class NullProxy<T> : RealProxy { private static readonly Dictionary<Ty