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