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 -

ruby on rails - Devise Logout Error in RoR -

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