Method return an interface

前端 未结 6 1063
青春惊慌失措
青春惊慌失措 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:30

    It returns an object that implements this particular interface, and that's all you really care about. The object is a IDataReader, and can perform all the methods IDataReader has.

提交回复
热议问题