Home > Net >  C # ref parameter, real participation parameters share the same memory block?
C # ref parameter, real participation parameters share the same memory block?

Time:09-19

When using ref parameter passed to the method is reference rather than a copy of the argument, that now parameter as an alias of the arguments, it is both share the same memory fast?

CodePudding user response:

The following actually said more understand,
Is your parameter actually is replaced with arguments,
So you actually is in operation the arguments,
So there would be no parameters and arguments are common problems, because they are a thing,

CodePudding user response:

reference 1st floor is nu month god reply:
this sentence actually say more understand,
Is your parameter actually is replaced with arguments,
So you actually is in operation the arguments,
So there would be no parameters and arguments are common problems, because they are a thing,

Got it, thank you bosses
  •  Tags:  
  • C#
  • Related