Cannot convert type via a reference conversion, boxing conversion, unboxing conversion, wrapping conversion, or null type conversion

前端 未结 3 723
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-07 23:14

In C#, if I have a parameter for a function where the parameter type is of an interface, how do a pass in an object that implements the interface.

Here is an example

3条回答
提交回复
热议问题