what is the use of defining a variable on a method inside a square brackets in VB.net? -
i looking @ method in vb.net , quite knew vb.net. trying understand why integer "[to]" , "[step] "is defined in square brackets ? can 1 please explain me. why can these defined to/step. have attached code below. in advance.
''' <summary> ''' write runtime output loop information ''' expected use when loop counter incremented ''' </summary> public sub writetoruntimeoutput(counter integer, [to] integer, [step] integer) dim message new stringbuilder message.appendformat("loop counter incremented. loop {0}/{1}", counter, [to]) if loopstep <> 1 message.appendformat(" step {0}", [step]) end if message.append(".") return message.tostring() end sub
square brackets used create variable has same name keyword.
for example
dim [integer] integer
Comments
Post a Comment