Click here to Skip to main content
15,887,334 members
Home / Discussions / C#
   

C#

 
QuestionSave objects with derived classes to disc Pin
larsp77724-Apr-12 5:12
larsp77724-Apr-12 5:12 
AnswerRe: Save objects with derived classes to disc Pin
Eddy Vluggen24-Apr-12 5:22
professionalEddy Vluggen24-Apr-12 5:22 
GeneralRe: Save objects with derived classes to disc Pin
larsp77724-Apr-12 5:30
larsp77724-Apr-12 5:30 
AnswerRe: Save objects with derived classes to disc Pin
Eddy Vluggen24-Apr-12 5:37
professionalEddy Vluggen24-Apr-12 5:37 
GeneralRe: Save objects with derived classes to disc Pin
larsp77724-Apr-12 5:48
larsp77724-Apr-12 5:48 
SuggestionRe: Save objects with derived classes to disc Pin
Eddy Vluggen24-Apr-12 5:57
professionalEddy Vluggen24-Apr-12 5:57 
GeneralRe: Save objects with derived classes to disc Pin
larsp77724-Apr-12 6:02
larsp77724-Apr-12 6:02 
GeneralRe: Save objects with derived classes to disc Pin
Eddy Vluggen24-Apr-12 6:15
professionalEddy Vluggen24-Apr-12 6:15 
larsp777 wrote:
Not sure what you mean but I declared a List of objects like:
 

List<book> BookList = new List<book>();

I guess you "need" the attribute because it doesn't know what's going to be stored in the list (being objects).

Can you post me a few lines more? If I put your code in a new project, I get a compile error (as expected, actually);
txt
Error CS0246: The type or namespace name 'List' could not be found (are you missing a using directive or an assembly reference?)


I was expecting a generic list, from the namespace System.Collections.Generic;
C#
System.Collection.Generic.List<Book> bookList = 
    new System.Collections.Generic.List<Book>();

Sounds like the site that I linked in the previous post is right - which means that their solutions might work Smile | :)
Bastard Programmer from Hell Suspicious | :suss:

GeneralRe: Save objects with derived classes to disc Pin
larsp77724-Apr-12 6:21
larsp77724-Apr-12 6:21 
GeneralRe: Save objects with derived classes to disc Pin
Dave Kreskowiak24-Apr-12 8:51
mveDave Kreskowiak24-Apr-12 8:51 
GeneralRe: Save objects with derived classes to disc Pin
larsp77724-Apr-12 10:31
larsp77724-Apr-12 10:31 
GeneralRe: Save objects with derived classes to disc Pin
Dave Kreskowiak24-Apr-12 15:47
mveDave Kreskowiak24-Apr-12 15:47 
GeneralRe: Save objects with derived classes to disc Pin
larsp77726-Apr-12 7:43
larsp77726-Apr-12 7:43 
AnswerRe: Save objects with derived classes to disc Pin
Alan N24-Apr-12 12:26
Alan N24-Apr-12 12:26 
Questionc# windows authentication offline Pin
k_finamore24-Apr-12 4:59
k_finamore24-Apr-12 4:59 
AnswerRe: c# windows authentication offline Pin
Pete O'Hanlon24-Apr-12 5:09
mvePete O'Hanlon24-Apr-12 5:09 
GeneralRe: c# windows authentication offline Pin
k_finamore24-Apr-12 5:21
k_finamore24-Apr-12 5:21 
AnswerRe: c# windows authentication offline Pin
Eddy Vluggen24-Apr-12 5:41
professionalEddy Vluggen24-Apr-12 5:41 
GeneralRe: c# windows authentication offline Pin
k_finamore24-Apr-12 5:50
k_finamore24-Apr-12 5:50 
GeneralRe: c# windows authentication offline Pin
Pete O'Hanlon24-Apr-12 5:44
mvePete O'Hanlon24-Apr-12 5:44 
GeneralRe: c# windows authentication offline Pin
k_finamore24-Apr-12 5:49
k_finamore24-Apr-12 5:49 
GeneralRe: c# windows authentication offline Pin
Pete O'Hanlon24-Apr-12 5:53
mvePete O'Hanlon24-Apr-12 5:53 
Questionsending a key press to certmgr.msc Pin
MitchG92_2424-Apr-12 4:44
MitchG92_2424-Apr-12 4:44 
AnswerRe: sending a key press to certmgr.msc Pin
Eddy Vluggen24-Apr-12 4:59
professionalEddy Vluggen24-Apr-12 4:59 
GeneralRe: sending a key press to certmgr.msc Pin
MitchG92_2424-Apr-12 5:02
MitchG92_2424-Apr-12 5:02 

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.