var digitToSubstitute = 5;
var targetNumber = 999999999;
var expectedOutput = 995999999;
How do I replace the n-th digit in an int32 without converting it to/from a string?
While this is a small sample, in real-life application I use this in a tight loop (to create all possible number combinations and check against existing ones), so I'd like to avoid creating strings.