示例#1
0
 internal static Library.IBookInfoContract ViewToContractAdapter(LibraryContractsBase.BookInfo view)
 {
     if (!System.Runtime.Remoting.RemotingServices.IsObjectOutOfAppDomain(view) &&
         (view.GetType().Equals(typeof(BookInfoContractToViewAddInAdapter))))
     {
         return(((BookInfoContractToViewAddInAdapter)(view)).GetSourceContract());
     }
     else
     {
         return(new BookInfoViewToContractAddInAdapter(view));
     }
 }
 public BookInfoViewToContractAddInAdapter(LibraryContractsBase.BookInfo view)
 {
     _view = view;
 }