How to cast different implementations of an interface to eachother

前端 未结 0 353
天涯浪人
天涯浪人 2021-02-05 22:24

If I have an interface call IBreakfastFood with properties Price, Name. How can I cast one implementation to another?

public interface IBreakfastFood
{
    public         


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