When is using the C# ref keyword ever a good idea?

后端 未结 10 970
情歌与酒
情歌与酒 2020-11-29 06:05

The more I see ref used in production code, the more misuse I encounter and the more pain it causes me. I have come to hate this keyword, because from a framework-building s

10条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-29 06:20

    It's useful when you need efficient in-place algorithms on bignums.

提交回复
热议问题