-
IEnumerable
Hello guys, i've been stuck for quite a while now with the following:
I have a listview in a webpage that is going to be updated with user interaction. Since the user has like 15 possibilities to choose from, I'm using reflection to determine what the user wants to see and avoid a "select case" nightmare. For this i'm using LINQ and the result Ii get is of type IEnumerable<myclasstype> Now thing is that i have lots "myclasstypes" and i want to be able to bind my control with no matter what type of class i use. Since i must return exactly the IEnumerable type used to query th db for binding. my question is: is it possible to have a generic IEnumerable<ofclasstype> to bind my controls.
Similar Threads
-
Replies: 4
Last Post: 05-26-2005, 02:47 AM
-
By Dan Thibodeaux in forum .NET
Replies: 1
Last Post: 05-05-2002, 01:15 PM
-
Replies: 0
Last Post: 12-28-2001, 01:17 PM
-
By Jason Bock in forum .NET
Replies: 6
Last Post: 02-02-2001, 02:49 PM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks