109: (Default)
[personal profile] 109
The ref method parameter keyword on a method parameter causes a method to refer to the same variable that was passed into the method. Any changes made to the parameter in the method will be reflected in that variable when control passes back to the calling method.

ну, предположим.

An overload will occur if declarations of two methods differ only in their use of ref.

какой, нах, overload? как компилятор поймёт, какой метод вызывается?

A property is not a variable and cannot be passed as a ref parameter.

ур-роды. меня ещё в Дельфи это достало, и тут то же самое. так трудно временный объект на стеке сделать?

(no subject)

Date: 2003-01-15 12:28 pm (UTC)
From: [identity profile] voidhawk.livejournal.com
Overload сработает, ref надо и в декларации, и в вызове писать.

Profile

109: (Default)
109

March 2019

S M T W T F S
     12
3456789
101112131415 16
17181920212223
24252627282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags