예제 #1
0
파일: WriteMapper.cs 프로젝트: qipa/OncRpc
 protected void SetOne <T>(WriteOneDelegate <T> method)
 {
     GetOneCacheType()
     .MakeGenericType(typeof(T))
     .GetField("Instance")
     .SetValue(null, method);
 }
예제 #2
0
 public WriteBuilder Map <T>(WriteOneDelegate <T> writer)
 {
     _wm.AppendMethod(typeof(T), OpaqueType.One, writer);
     return(this);
 }