Example #1
0
 public static object SetterAs(FieldInfo fieldInfo, Type delegateType)
 {
     return fieldInfo.CanWrite()
         ? _setCache.GetOrAdd(Tuple.Create(fieldInfo, delegateType), t => new FieldSetDelegateBuilder(fieldInfo, delegateType).CreateDelegate())
         : null;
 }