Click here to Skip to main content
15,888,579 members
Home / Discussions / C#
   

C#

 
AnswerRe: Direct access to the webCam of the machine on .net framework Pin
JF201514-Aug-10 23:08
JF201514-Aug-10 23:08 
QuestionGenerics question Pin
Pete Burkindine14-Aug-10 12:31
Pete Burkindine14-Aug-10 12:31 
GeneralRe: Generics question Pin
harold aptroot14-Aug-10 12:47
harold aptroot14-Aug-10 12:47 
GeneralRe: Generics question Pin
Pete Burkindine14-Aug-10 12:55
Pete Burkindine14-Aug-10 12:55 
GeneralRe: Generics question Pin
harold aptroot14-Aug-10 13:26
harold aptroot14-Aug-10 13:26 
GeneralRe: Generics question Pin
Pete Burkindine14-Aug-10 13:40
Pete Burkindine14-Aug-10 13:40 
GeneralRe: Generics question Pin
harold aptroot14-Aug-10 13:56
harold aptroot14-Aug-10 13:56 
GeneralRe: Generics question Pin
Pete Burkindine14-Aug-10 14:20
Pete Burkindine14-Aug-10 14:20 
I am open to trying the reflection method, if you could possible provide an example...

The problem with making parent generic is that then all the other classes that ref parent objects in the library will need to know what type it is, which means making them all generic as well. Essentially, the entire library would have to be generic just so one class can be. Coding with the library would be a nightmare, since most of the other classes have nothing to do with child objects and there is no logical relationship between them.

It would be like having to instantiate CashRegister(of Cat) objects because your pet store program has a PetList type that needs the type param. The cash register doesn't need to know that; it should be able to work with the, say, count and price fields on the petlist object without needing to know the cat's hair color. If that makes sense. WTF | :WTF:
GeneralRe: Generics question Pin
harold aptroot14-Aug-10 14:29
harold aptroot14-Aug-10 14:29 
GeneralRe: Generics question Pin
Pete Burkindine14-Aug-10 15:22
Pete Burkindine14-Aug-10 15:22 
GeneralRe: Generics question Pin
PIEBALDconsult14-Aug-10 15:43
mvePIEBALDconsult14-Aug-10 15:43 
GeneralRe: Generics question Pin
Pete Burkindine14-Aug-10 15:50
Pete Burkindine14-Aug-10 15:50 
GeneralRe: Generics question Pin
PIEBALDconsult14-Aug-10 16:38
mvePIEBALDconsult14-Aug-10 16:38 
GeneralRe: Generics question Pin
Pete Burkindine14-Aug-10 16:58
Pete Burkindine14-Aug-10 16:58 
GeneralRe: Generics question Pin
harold aptroot14-Aug-10 17:03
harold aptroot14-Aug-10 17:03 
GeneralRe: Generics question Pin
Pete Burkindine14-Aug-10 17:10
Pete Burkindine14-Aug-10 17:10 
GeneralRe: Generics question Pin
PIEBALDconsult14-Aug-10 17:22
mvePIEBALDconsult14-Aug-10 17:22 
GeneralRe: Generics question Pin
Pete Burkindine14-Aug-10 17:25
Pete Burkindine14-Aug-10 17:25 
GeneralRe: Generics question Pin
PIEBALDconsult14-Aug-10 18:19
mvePIEBALDconsult14-Aug-10 18:19 
GeneralRe: Generics question Pin
Pete Burkindine14-Aug-10 18:31
Pete Burkindine14-Aug-10 18:31 
GeneralRe: Generics question [modified] Pin
PIEBALDconsult14-Aug-10 18:35
mvePIEBALDconsult14-Aug-10 18:35 
GeneralRe: Generics question Pin
Pete Burkindine14-Aug-10 18:46
Pete Burkindine14-Aug-10 18:46 
GeneralRe: Generics question Pin
PIEBALDconsult14-Aug-10 18:49
mvePIEBALDconsult14-Aug-10 18:49 
GeneralRe: Generics question Pin
Pete Burkindine14-Aug-10 19:12
Pete Burkindine14-Aug-10 19:12 
GeneralRe: Generics question Pin
PIEBALDconsult14-Aug-10 19:46
mvePIEBALDconsult14-Aug-10 19:46 

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.