Both are keyword cause argument passed by reference. There is minor difference between both of then
ref keyword required that variable must be initialized before passed to function
Out keyword variable initialization is not required but before returning to caller function from callee is require to assign the value before returning else give compile time error.
The ref and out keyword treat different in run time but same at compile time so we can’t overload method if one method have out argument and one have ref argument
Microsoft .NET Tips · · · ·
You wrote a post in justlearned on same topic few days back..
True, Rami I just forgot !!
A small problem : when i click on Read More... , i am receiving 404 - File or directory not found
The error is because the URL placed in the post is incorrect. Rami, can you post the url of the other post you mentioned?
yes, mentioned in my comment..
Ah..sorry. I did not notice that..