示例#1
0
 public Adaptable(AdapterService service, TSource source)
 {
     this.service = service;
     this.source  = source;
 }
示例#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));
 }