Is it possible to have an optional parameter be an object in C#?

后端 未结 0 771
眼角桃花
眼角桃花 2021-01-16 07:42

For example, let\'s say I want to create a function like so, and want the last argument to be optional (if supplied, use it - otherwise just create a new one and use that)

相关标签:
回答
  • 消灭零回复
提交回复
热议问题