c# - Colon use inside function declaration -



c# - Colon use inside function declaration -

i saw code, colon used within function declaration:

dowork(param1:param2)

i know colon inheritance: class child: parent but, purpose of colon when used before variable?

edit i've corrected question

named optional arguments

its can have optional number of arguments supplied, compiler needs know arguments marry parameters, otherwise defaults used others.

c# colon

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -