Click here to Skip to main content
15,886,518 members
Home / Discussions / C#
   

C#

 
QuestionC# Class Design Pin
jimbo6914-Jul-13 18:03
jimbo6914-Jul-13 18:03 
AnswerRe: C# Class Design Pin
OriginalGriff14-Jul-13 20:42
mveOriginalGriff14-Jul-13 20:42 
GeneralRe: C# Class Design Pin
jimbo6915-Jul-13 4:44
jimbo6915-Jul-13 4:44 
GeneralRe: C# Class Design Pin
OriginalGriff15-Jul-13 5:00
mveOriginalGriff15-Jul-13 5:00 
AnswerRe: C# Class Design Pin
Bernhard Hiller15-Jul-13 3:05
Bernhard Hiller15-Jul-13 3:05 
GeneralRe: C# Class Design Pin
jimbo6915-Jul-13 4:45
jimbo6915-Jul-13 4:45 
Questionc# Pin
akoito114-Jul-13 16:52
akoito114-Jul-13 16:52 
AnswerRe: c# Pin
OriginalGriff14-Jul-13 20:05
mveOriginalGriff14-Jul-13 20:05 
There are a huge number of ways!
The easiest is to use a DataSet.

Easy write:
Create your data in a DataTable, then:
DataSet ds = new DataSet();
ds.Tables.Add(dt);
ds.WriteXml(@"D:\Temp\td.xml");

Easy Read:
DataSet ds = new DataSet();
ds.ReadXml(@"D:\Temp\td.xml");
dt = ds.Tables[0];

You can use DataTable.ReadXml instead, but it doesn't support schema inference, DataSet.ReadXml does.
The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

QuestionHow to dispose all resources after closing the application ? Pin
taibc13-Jul-13 23:26
taibc13-Jul-13 23:26 
AnswerRe: How to dispose all resources after closing the application ? Pin
Eddy Vluggen14-Jul-13 2:45
professionalEddy Vluggen14-Jul-13 2:45 
GeneralRe: How to dispose all resources after closing the application ? Pin
taibc14-Jul-13 15:04
taibc14-Jul-13 15:04 
GeneralRe: How to dispose all resources after closing the application ? PinPopular
NotPolitcallyCorrect14-Jul-13 15:30
NotPolitcallyCorrect14-Jul-13 15:30 
GeneralRe: How to dispose all resources after closing the application ? Pin
Dave Kreskowiak14-Jul-13 15:34
mveDave Kreskowiak14-Jul-13 15:34 
GeneralRe: How to dispose all resources after closing the application ? Pin
jschell15-Jul-13 8:42
jschell15-Jul-13 8:42 
GeneralRe: How to dispose all resources after closing the application ? Pin
Dave Kreskowiak15-Jul-13 10:03
mveDave Kreskowiak15-Jul-13 10:03 
GeneralRe: How to dispose all resources after closing the application ? Pin
jschell16-Jul-13 8:10
jschell16-Jul-13 8:10 
GeneralRe: How to dispose all resources after closing the application ? Pin
Dave Kreskowiak16-Jul-13 9:28
mveDave Kreskowiak16-Jul-13 9:28 
GeneralRe: How to dispose all resources after closing the application ? Pin
jschell17-Jul-13 8:37
jschell17-Jul-13 8:37 
GeneralRe: How to dispose all resources after closing the application ? Pin
Dave Kreskowiak17-Jul-13 9:27
mveDave Kreskowiak17-Jul-13 9:27 
GeneralRe: How to dispose all resources after closing the application ? Pin
jschell18-Jul-13 9:17
jschell18-Jul-13 9:17 
GeneralRe: How to dispose all resources after closing the application ? Pin
Dave Kreskowiak18-Jul-13 9:35
mveDave Kreskowiak18-Jul-13 9:35 
GeneralRe: How to dispose all resources after closing the application ? Pin
Eddy Vluggen15-Jul-13 0:30
professionalEddy Vluggen15-Jul-13 0:30 
AnswerRe: How to dispose all resources after closing the application ? Pin
jschell15-Jul-13 8:45
jschell15-Jul-13 8:45 
QuestionMessage Transfer from Pc to micro controller Pin
Member 402509113-Jul-13 21:41
Member 402509113-Jul-13 21:41 
AnswerRe: Message Transfer from Pc to micro controller Pin
David Knechtges15-Jul-13 3:03
David Knechtges15-Jul-13 3:03 

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.