Given:
private T SomeFunction<T>(T obj)
Is it possible to test if the passed object type T is derived from a DataContext?
T
EG this returned object would test for True:
True
using(var db = new DBContext()) { return db.Table.First(); }
Aucun commentaire:
Enregistrer un commentaire