comment récrire cette méthode?
publicstaticList<object> GetAllObjects(string ObjectName){
IObjectScope scope = ObjectScopeProvider1.ObjectScope();string OQLQuery = "Select * from " + ObjectName + "Extent";IQueryResult result = scope.GetOqlQuery(OQLQuery).Execute();List<object> entityCollection = newList<object>();foreach (object entity in result){
entityCollection.Add(entity);
}
return entityCollection;}
avec un cast correcte avec public static List<T> GetAllObjects<T>(string ObjectName)
blueangel13