Ads Header

ssdf

sssssadf asdf asdfsad fasd dfasdf

what is the difference between ref and out parameters ?

ref –> inout

out –> Out

Argument passed as ref must be initialized before it is passed to the method,where as incase of Out it’s not neccssary.but after a call to the method as an out parameter the variable must be initialized .out parameter can be used when you want to return more than one value from a method.

0 comments:

ssss

sssssadf asdf asdfsad fasdf asdfasdf