Exemplo n.º 1
0
 internal static IBookInfoContract ViewToContractAdapter(BookInfo view)
 {
     if (!RemotingServices.IsObjectOutOfAppDomain(view) &&
         view.GetType().Equals(typeof(BookInfoContractToViewAddInAdapter)))
     {
         return(((BookInfoContractToViewAddInAdapter)view).GetSourceContract());
     }
     return(new BookInfoViewToContractAddInAdapter(view));
 }