A general partner of a limited partnership may make contributions to the limited partnership and share in the profits and losses of, and in distributions from, the limited partnership as a general partner. A general partner also may make contributions to the limited partnership, and share in the profits and losses of, and distributions from, the limited partnership, as a limited partner. A person who is both a general partner and a limited partner shall have all of the rights and powers, and shall be subject to all of the restrictions and liabilities of a general partner, and, except as provided in the partnership agreement, also shall have all of the powers, and shall be subject to all of the restrictions, of a limited partner to the extent of his participation in the partnership as a limited partner.