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 -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -