Example #1
0
 protected void SetOne <T>(WriteOneDelegate <T> method)
 {
     GetOneCacheType()
     .MakeGenericType(typeof(T))
     .GetField("Instance")
     .SetValue(null, method);
 }
Example #2
0
 public WriteBuilder Map <T>(WriteOneDelegate <T> writer)
 {
     _wm.AppendMethod(typeof(T), OpaqueType.One, writer);
     return(this);
 }