internal static OpenSourceAutomation.Contracts.IOpenSourceAutomationAddInContract ViewToContractAdapter(OpenSourceAutomation.IOpenSourceAutomationAddInv2 view)
 {
     if ((view == null))
     {
         return null;
     }
     if (view.GetType().Equals(typeof(IOpenSourceAutomationAddInContractToViewAddInAdapter)))
     {
         return ((IOpenSourceAutomationAddInContractToViewAddInAdapter)(view)).GetSourceContract();
     }
     else
     {
         return new IOpenSourceAutomationAddInViewToContractAddInAdapter(view);
     }
 }
 internal static OpenSourceAutomation.IOpenSourceAutomationAddInv2 ContractToViewAdapter(OpenSourceAutomation.Contracts.IOpenSourceAutomationAddInContract contract)
 {
     if ((contract == null))
     {
         return null;
     }
     if (((System.Runtime.Remoting.RemotingServices.IsObjectOutOfAppDomain(contract) != true)
                 && contract.GetType().Equals(typeof(IOpenSourceAutomationAddInViewToContractAddInAdapter))))
     {
         return ((IOpenSourceAutomationAddInViewToContractAddInAdapter)(contract)).GetSourceView();
     }
     else
     {
         return new IOpenSourceAutomationAddInContractToViewAddInAdapter(contract);
     }
 }