Click here to Skip to main content
15,924,452 members
Home / Discussions / C#
   

C#

 
Questionxml attributes and sql database Pin
spin vector17-Feb-07 6:11
spin vector17-Feb-07 6:11 
QuestionProblems with XML Pin
sharpiesharpie17-Feb-07 4:03
sharpiesharpie17-Feb-07 4:03 
AnswerRe: Problems with XML Pin
Stefan Troschuetz17-Feb-07 4:56
Stefan Troschuetz17-Feb-07 4:56 
GeneralRe: Problems with XML Pin
sharpiesharpie17-Feb-07 5:33
sharpiesharpie17-Feb-07 5:33 
GeneralRe: Problems with XML Pin
Heath Stewart17-Feb-07 5:41
protectorHeath Stewart17-Feb-07 5:41 
GeneralRe: Problems with XML Pin
Stefan Troschuetz17-Feb-07 5:54
Stefan Troschuetz17-Feb-07 5:54 
GeneralRe: Problems with XML Pin
sharpiesharpie17-Feb-07 6:16
sharpiesharpie17-Feb-07 6:16 
GeneralRe: Problems with XML Pin
Stefan Troschuetz17-Feb-07 6:25
Stefan Troschuetz17-Feb-07 6:25 
First of all, you should declare the fields of your Reminder class as private and make them accessible through properties. It is no good coding practise to have public fields.
public sealed class Reminder
{        
	public string Name
	{
		get { return this.name; }
		set { this.name= value; }
	}
	private string name;

	...
}

Regarding your actual question, declare a List instance that contains the Reminder objects and then serialize and deserialize that list.


"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

www.troschuetz.de

GeneralRe: Problems with XML Pin
sharpiesharpie17-Feb-07 6:35
sharpiesharpie17-Feb-07 6:35 
GeneralRe: Problems with XML Pin
Stefan Troschuetz17-Feb-07 6:46
Stefan Troschuetz17-Feb-07 6:46 
GeneralRe: Problems with XML Pin
sharpiesharpie17-Feb-07 6:49
sharpiesharpie17-Feb-07 6:49 
GeneralRe: Problems with XML Pin
Stefan Troschuetz17-Feb-07 7:04
Stefan Troschuetz17-Feb-07 7:04 
GeneralRe: Problems with XML Pin
sharpiesharpie17-Feb-07 7:43
sharpiesharpie17-Feb-07 7:43 
GeneralRe: Problems with XML Pin
sharpiesharpie17-Feb-07 7:57
sharpiesharpie17-Feb-07 7:57 
Questionlanguage question Pin
OlaMohammed17-Feb-07 2:17
OlaMohammed17-Feb-07 2:17 
AnswerRe: language question Pin
Simon P Stevens17-Feb-07 3:04
Simon P Stevens17-Feb-07 3:04 
GeneralRe: language question Pin
OlaMohammed18-Feb-07 0:25
OlaMohammed18-Feb-07 0:25 
AnswerRe: language question Pin
Stefan Troschuetz17-Feb-07 3:30
Stefan Troschuetz17-Feb-07 3:30 
QuestionChanging an object value in listbox control .. Pin
Hussam Fattahi17-Feb-07 0:38
Hussam Fattahi17-Feb-07 0:38 
AnswerRe: Changing an object value in listbox control .. Pin
Luc Pattyn17-Feb-07 1:32
sitebuilderLuc Pattyn17-Feb-07 1:32 
GeneralRe: Changing an object value in listbox control .. Pin
Hussam Fattahi17-Feb-07 1:48
Hussam Fattahi17-Feb-07 1:48 
QuestionMiddle Text line Pin
MHASSANF17-Feb-07 0:19
MHASSANF17-Feb-07 0:19 
AnswerRe: Middle Text line Pin
Stefan Troschuetz17-Feb-07 1:45
Stefan Troschuetz17-Feb-07 1:45 
QuestionMultiple Datagridview Export to new Form Pin
Rick van Woudenberg16-Feb-07 23:40
Rick van Woudenberg16-Feb-07 23:40 
AnswerRe: Multiple Datagridview Export to new Form Pin
Heath Stewart17-Feb-07 5:57
protectorHeath Stewart17-Feb-07 5:57 

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.