=> ref causes an
argument to be passed by reference not by value. It provides a reference to the source value
and changes made in the method will be made to the source object
=> Arguments
passed as ref must be initialized before they are passed.
=> out also causes an
argument to be passed by reference.
Changes made to the parameter are also changed in the source.
=> Arguments
passed using out do not have to be initialized first.
=> The
called method must assign a value prior to the method return statement
Comments
Post a Comment