Ref parameters and reflection

前端 未结 5 1958
北恋
北恋 2020-12-29 02:51

I\'m not sure if I\'m totally missing something here but I can\'t find any way to determine if a parameter is passed by reference or not by using reflection.

Argumen

5条回答
  •  爱一瞬间的悲伤
    2020-12-29 03:10

    if ref is parameterInfo.IsIn == true && parameterInfo.IsOut == true then one might not need if parameterInfo.ParameterType.IsByRef at all

提交回复
热议问题