What is the difference between ref and out keywords?
What is the difference between ref and out keywords?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sandip G PatilPosted Jan 27, 2017, 11:55 AM
Rajeesh MenothPosted Nov 3, 2016, 1:37 AM
Kanniyappan KrishPosted Nov 3, 2016, 1:26 AM
Thennarasu NPosted Nov 2, 2016, 3:58 AM
The
refmodifier means that:The
outmodifier means that:Ananth GPosted Nov 2, 2016, 3:17 AM
The out keyword passes arguments by reference. This is very similar to the ref keyword.
Example Code
Bikesh SrivastavaPosted Nov 1, 2016, 8:39 AM
Bulbul AhmedPosted Nov 1, 2016, 8:13 AM
Chinmaya DashPosted Nov 1, 2016, 8:06 AM
Bulbul AhmedPosted Nov 1, 2016, 8:01 AM