If a township is the owner of real property within the township where a building used for township purposes is located and, subsequent to the erection of the building, the real property becomes part of an incorporated village or city, the township may use the building for township purposes, including the holding of an election and the adoption of a resolution or other action by the township or its officers. The use of the building for township purposes is valid in all respects as though the building were located within the corporate limits of the township.
MCL 41.417