Getting Started with Adobe After Effects - Part 6: Motion Blur
A collection of quick technology learning tips from what people around you learn every day

Difference between Ref and out keyword cSharp

Nov 4 2011 11:26PM by Kirti M.Darji   

Both are keyword cause argument passed by reference. There is minor difference between both of then ref: ref keyword required that variable must be initialized before passed to function Out: 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

Read More..   [32134 clicks]

Published under: Microsoft .NET Tips ·  ·  ·  · 


Kirti M.Darji
9 · 16% · 5006
6
 
3
 
 
0
Incorrect
 
0
Interesting
 
0
Forgotten



Submit

6  Comments  

  • True, Rami I just forgot !!

    commented on Aug 19 2011 7:00AM
    Kirti M.Darji
    9 · 16% · 5006
  • A small problem : when i click on Read More... , i am receiving 404 - File or directory not found

    commented on Nov 4 2011 4:34PM
    Patrick Lambin
    166 · 1% · 296
  • The error is because the URL placed in the post is incorrect. Rami, can you post the url of the other post you mentioned?

    commented on Nov 4 2011 11:26PM
    Jacob Sebastian
    1 · 100% · 32220
  • yes, mentioned in my comment..

    commented on Nov 5 2011 1:45AM
    Ramireddy
    2 · 40% · 12972
  • Ah..sorry. I did not notice that..

    commented on Nov 5 2011 2:43AM
    Jacob Sebastian
    1 · 100% · 32220

Your Comment


Sign Up or Login to post a comment.

"Difference between Ref and out keyword cSharp" rated 5 out of 5 by 6 readers
Difference between Ref and out keyword cSharp , 5.0 out of 5 based on 6 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]