What's the difference between
Method(int arg0 = 0) vs Method([Optional] int arg0 = 0);
whenever I try to call this method, the compiler talks about its ambiguous situation. I know why this is an ambiguous situation, my interest is what is the difference between these 2 if they facilitate the same thing = optional parameter. However, they do it differently, visually on the list - they donโt know about under the hood.
I was told that the first method is really used to use DEFAULT, which means that you initialize the default values, and the second - OPTIONAL, which were used in cases where you will not define the default values โโ- although this makes sense, however they both can be easily assigned to values, rather than. What is the real difference and their use?
c #
Ailayna entarria
source share