Click here to Skip to main content
15,914,419 members
Home / Discussions / C#
   

C#

 
GeneralRe: Implementing IEnumerable Pin
Jammer1-Mar-08 4:05
Jammer1-Mar-08 4:05 
GeneralRe: Implementing IEnumerable Pin
papadimitriou1-Mar-08 4:16
papadimitriou1-Mar-08 4:16 
GeneralRe: Implementing IEnumerable Pin
Jammer1-Mar-08 4:23
Jammer1-Mar-08 4:23 
GeneralRe: Implementing IEnumerable Pin
Jammer1-Mar-08 5:27
Jammer1-Mar-08 5:27 
GeneralRe: Implementing IEnumerable Pin
Jammer1-Mar-08 8:35
Jammer1-Mar-08 8:35 
GeneralRe: Implementing IEnumerable Pin
buchstaben1-Mar-08 8:40
buchstaben1-Mar-08 8:40 
GeneralRe: Implementing IEnumerable Pin
Jammer1-Mar-08 8:50
Jammer1-Mar-08 8:50 
GeneralRe: Implementing IEnumerable Pin
buchstaben2-Mar-08 2:38
buchstaben2-Mar-08 2:38 
hm..i'm still not sure if you got it now (looking at the other replies).

using a generic collection is mainly useful to have a container with elements of the same type. if you want a list with almost any datatype in it, generics is not helpful.

using List<string> list = new List<string>(); will create a list containing only strings. so list.Add will only allow you to add strings and getting elements of this list will always return a string.

if all you want is a collection of FileList instances, use List<FileList>. you will not need to implement ienumerable. if you want a collection of instances of any type, use untyped system.collection.list.

you may also want to specify what concrete data you want to hold in that collection, so a better advise can be given.
GeneralRe: Implementing IEnumerable Pin
Jammer2-Mar-08 2:55
Jammer2-Mar-08 2:55 
GeneralRe: Implementing IEnumerable Pin
buchstaben2-Mar-08 3:33
buchstaben2-Mar-08 3:33 
GeneralRe: Implementing IEnumerable Pin
Jammer2-Mar-08 3:46
Jammer2-Mar-08 3:46 
GeneralRe: Implementing IEnumerable Pin
Guffa1-Mar-08 8:52
Guffa1-Mar-08 8:52 
GeneralRe: Implementing IEnumerable Pin
Jammer1-Mar-08 9:06
Jammer1-Mar-08 9:06 
GeneralRe: Implementing IEnumerable Pin
Guffa1-Mar-08 10:34
Guffa1-Mar-08 10:34 
GeneralRe: Implementing IEnumerable Pin
Jammer1-Mar-08 10:42
Jammer1-Mar-08 10:42 
GeneralRe: Implementing IEnumerable Pin
Elina Blank1-Mar-08 11:27
sitebuilderElina Blank1-Mar-08 11:27 
GeneralRe: Implementing IEnumerable Pin
Jammer1-Mar-08 11:31
Jammer1-Mar-08 11:31 
Generalclick once help [modified] Pin
poqeqw1-Mar-08 0:11
poqeqw1-Mar-08 0:11 
GeneralRe: click once help Pin
buchstaben1-Mar-08 8:46
buchstaben1-Mar-08 8:46 
Questionhow to use javascript with master page in asp.net2.0 Pin
puspendra napit1-Mar-08 0:01
puspendra napit1-Mar-08 0:01 
GeneralCross post - please ignore Pin
pmarfleet1-Mar-08 2:34
pmarfleet1-Mar-08 2:34 
Questionresponse.write and response.outputwrite Pin
Sachin Pawar29-Feb-08 23:02
Sachin Pawar29-Feb-08 23:02 
GeneralRe: response.write and response.outputwrite Pin
Christian Graus29-Feb-08 23:08
protectorChristian Graus29-Feb-08 23:08 
GeneralRe: response.write and response.outputwrite Pin
Guffa1-Mar-08 2:24
Guffa1-Mar-08 2:24 
GeneralRe: response.write and response.outputwrite Pin
Christian Graus1-Mar-08 9:26
protectorChristian Graus1-Mar-08 9:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.