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

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -