Section Fifteen Hundred and Twelve. If the performance of an obligation be prevented by the creditor, the debtor is entitled to all the benefits which he would have obtained if it had been performed by both parties.
(Amended by Code Amendments 1873-74, Ch. 612.)