Practical uses of TypedReference

前端 未结 2 1251
被撕碎了的回忆
被撕碎了的回忆 2020-12-15 16:57

Are there any practical uses of the TypedReference struct that you would actually use in real code?

EDIT: The .Net framework uses them in overloads

2条回答
  •  伪装坚强ぢ
    2020-12-15 17:29

    Are there any practical uses of the TypedReference struct that you would actually use in real code?

    Yes. I'd use them if I needed interoperability with C-style variadic methods.

    Why do these overloads exist?

    They exist for interoperability with callers who like to use C-style variadic methods.

提交回复
热议问题