Exemplo n.º 1
0
 protected virtual void BeforeConvert(TSource source)
 {
     if (MutatorsAssignRecorder.IsRecording())
     {
         MutatorsAssignRecorder.RecordConverter(GetType().Name);
     }
 }
Exemplo n.º 2
0
 public Func <TSource, TDest> GetConverter(MutatorsContext context)
 {
     if (MutatorsAssignRecorder.IsRecording())
     {
         MutatorsAssignRecorder.RecordConverter(GetType().Name);
     }
     return(GetOrCreateHashtableSlot(context).Converter);
 }