Posts

Showing posts from July 17, 2023

Ref Vs Out Keyword

                                                 Ref Vs Out Keyword Ref vs Out Keyword in C#     Ref-      1)R ef parameter should have the same value.      2)Ref keyword is used to pass an argument as a reference     3) No Need to initialize out parameter before passing it.             Eg:=int a;      4) Out parameter must be initialized before returning.   Out -       1)O ut parameters are not required to have value      2)Out keyword is also used to pass an argument like ref keyword      3)Must initialize Ref parameter else error.          Eg:=int b=5;        4) Ref parameter  initialized not necessary. When t...

Popular posts from this blog

String Program in C#

CSV using XmlNode

Controller_Model. cs