A set-off must be considered from two standpoints: (a) as a defense to the plaintiff's action, and (b) as a distinct cause of action. From the first standpoint it is governed by the law of the forum; and from the second by the same law that it would have been governed by if it had been brought as an independent cause of action.