Is there a reason why these 2 examples do not produce the same value. C # doesn't seem to auto-increment before returning.
nextNumber++;
return nextNumber;
and
return nextNumber++;
Is it a bug? I am using Microsoft Visual Studio Community 2019 Version 16.7.6