コード例 #1
0
ファイル: ReadMapper.cs プロジェクト: qipa/OncRpc
 protected void SetOne <T>(ReadOneDelegate <T> method)
 {
     GetOneCacheType()
     .MakeGenericType(typeof(T))
     .GetField("Instance")
     .SetValue(null, method);
 }
コード例 #2
0
 public ReadBuilder Map <T>(ReadOneDelegate <T> reader)
 {
     _rm.AppendMethod(typeof(T), OpaqueType.One, reader);
     return(this);
 }