Avoid ref keyword in Extensions method #6813
Unanswered
KeyserDSoze
asked this question in
Q&A
Replies: 3 comments 1 reply
-
As was discussed on the community discord, this isn't possible. Only value types can have an extension method that takes a |
Beta Was this translation helpful? Give feedback.
0 replies
-
In the end, to avoid the use of IL code or something similar, I went for out keyword, in my opinion more usable than ref or other mechanisms.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I need an help. I have a method like this one.
How can I create an extension method to allow the change of reference without ref keyword?
How can I modify the value outside the extension method?
Beta Was this translation helpful? Give feedback.
All reactions