public Adaptable(AdapterService service, TSource source)
 {
     this.service = service;
     this.source  = source;
 }
Exemple #2
0
 /// <summary>
 /// Returns an adaptable object for the given <paramref name="source"/>.
 /// </summary>
 /// <returns>The adaptable object for the given source type.</returns>
 public static IAdaptable <TSource> Adapt <TSource>(this TSource source)
     where TSource : class
 {
     return(AdapterService.Adapt <TSource>(source));
 }