Every such company may connect with or cross any other railroad on its line and may purchase, lease or consolidate with, or sell or lease its property and franchises to, any other railroad in or out of this State, in such manner and upon such terms as may be agreed between such railroad companies not inconsistent with laws of this State or of the United States.
S.C. Code § 58-17-1170