(1) Property held for a charitable purpose under the law of this state by a domestic or foreign entity immediately before a transaction under this chapter becomes effective may not, as a result of the transaction, be diverted from the objects for which it was donated, granted, devised, or otherwise transferred unless, to the extent required under or pursuant to the law of this state concerning cy pres or other law dealing with nondiversion of charitable assets, the entity obtains an appropriate order of the appropriate court specifying the disposition of the property.
(2) A bequest, devise, gift, grant, or promise contained in a will or other instrument of donation, subscription, or conveyance that is made to a merging entity that is not the surviving entity and that takes effect or remains payable after the merger inures to the surviving entity. A trust obligation that would govern property if transferred to the nonsurviving entity applies to property that is transferred to the surviving entity under this section.