Whenever any county officer is required to perform the official duties of any other officer of this state he shall have for that time the same powers given by law to the officer whose duties he performs and shall receive the same compensation for his services.
W.S. 18-3-105