What would to keep copper from corroding when attached to a different metal?

What would to keep copper from corroding when attached to a different metal?