Method return an interface

前端 未结 6 1104
青春惊慌失措
青春惊慌失措 2021-02-02 01:18

Hi All,

I\'m thinking in this line of code

IDataReader myReader = questDatabase.ExecuteReader(getQuest);

I\'m using DA

6条回答
  •  你的背包
    2021-02-02 01:35

    It returns an interface because the implementation of the interface isn't important, just the API that the interface provides.

提交回复
热议问题