Hi All,
I\'m thinking in this line of code
IDataReader myReader = questDatabase.ExecuteReader(getQuest);
I\'m using DA
The method will return an object, which is an instance of a class, and that type of class will support IDataReader
.
The point is, the type of the object isn't important, just the fact that the class implements the interface.
If you're driving a car, you don't need to know if it's a ford, or a toyota, you drive the car the same way.
The driving interface is the same, once the car supports the interface, you can drive it.
Ditto with the IDataReader
, once the class that is returned supports the interface, you can use it.