All notes, bonds, bills, contracts, covenants, agreements, or writings, made or to be made, whereby any person is, or shall be, bound to any county, or the commissioners of any county, or to any other person, in whatever form, for the payment of any debt or duty, or the performance of any matter or thing, to the use of any county, shall be valid and effectual to all intents and purposes to vest in the county all rights, interests, and actions which would be vested in any individual if any such contract had been made directly to him or her.