Upgrading WP Version + Keeping Customized Core Code?

Upgrading WP Version + Keeping Customized Core Code?