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
Post a Comment