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

C#

 
QuestionHave I implemented this well - code critique & tips please? Pin
Kevin Bewley2-May-14 0:07
Kevin Bewley2-May-14 0:07 
QuestionFile refuses to delete Pin
Kasun Liyanage1-May-14 1:01
Kasun Liyanage1-May-14 1:01 
AnswerRe: File refuses to delete Pin
Richard Deeming1-May-14 1:06
mveRichard Deeming1-May-14 1:06 
GeneralRe: File refuses to delete Pin
Kasun Liyanage1-May-14 1:09
Kasun Liyanage1-May-14 1:09 
GeneralRe: File refuses to delete Pin
Richard Deeming1-May-14 1:11
mveRichard Deeming1-May-14 1:11 
GeneralRe: File refuses to delete Pin
Kasun Liyanage1-May-14 2:24
Kasun Liyanage1-May-14 2:24 
QuestionI want to write a tool for work and I don't know if C# is the right tool - If so, I'd love it if someone knew of a sample Pin
Member 1041949730-Apr-14 12:30
Member 1041949730-Apr-14 12:30 
AnswerRe: I want to write a tool for work and I don't know if C# is the right tool - If so, I'd love it if someone knew of a sample Pin
Pete O'Hanlon30-Apr-14 12:44
mvePete O'Hanlon30-Apr-14 12:44 
This seems a perfectly reasonable tool to use C# for. If I were you, I would write this with Windows Forms because you aren't going to want the added complexity of learning WPF on top of this. In order to query for the files, you would be looking at using something like this to retrieve the XML files (assuming you are looking in a flat directory structure):
C#
DirectoryInfo di = new DirectoryInfo(pathToFolder);
FileInfo[] files = di.GetFiles("*.xml");
In this example, I'm retrieving the FileInfo because we can use this to determine things like when the file was last accessed - this is a handy way to remove files you have already looked at. In order to parse the files, you should probably look into using XLinq (that's XML for LINQ) - if you Google on this, you'll find lots of examples on how to use this.

Good luck with your development, and don't forget to come back if you have particular problems you are stuck with.
NewsC# vNext language design - private protected - FamilyAndAssembly Pin
Paulo Morgado30-Apr-14 10:46
professionalPaulo Morgado30-Apr-14 10:46 
GeneralRe: C# vNext language design - private protected - FamilyAndAssembly Pin
Richard Deeming1-May-14 1:03
mveRichard Deeming1-May-14 1:03 
GeneralRe: C# vNext language design - private protected - FamilyAndAssembly Pin
Paulo Morgado1-May-14 6:21
professionalPaulo Morgado1-May-14 6:21 
QuestionString, Why does this work?? Pin
GrooverFromHolland30-Apr-14 8:53
GrooverFromHolland30-Apr-14 8:53 
AnswerRe: String, Why does this work?? Pin
BillWoodruff30-Apr-14 9:58
professionalBillWoodruff30-Apr-14 9:58 
GeneralRe: String, Why does this work?? Pin
GrooverFromHolland30-Apr-14 10:16
GrooverFromHolland30-Apr-14 10:16 
GeneralRe: String, Why does this work?? Pin
Rob Philpott1-May-14 1:51
Rob Philpott1-May-14 1:51 
AnswerRe: String, Why does this work?? Pin
Alan N1-May-14 0:58
Alan N1-May-14 0:58 
Questionwriting to a file while Looping Pin
Kasun Liyanage30-Apr-14 7:35
Kasun Liyanage30-Apr-14 7:35 
AnswerRe: writing to a file while Looping Pin
OriginalGriff30-Apr-14 8:07
mveOriginalGriff30-Apr-14 8:07 
GeneralRe: writing to a file while Looping Pin
Kasun Liyanage30-Apr-14 8:31
Kasun Liyanage30-Apr-14 8:31 
GeneralRe: writing to a file while Looping Pin
OriginalGriff30-Apr-14 8:39
mveOriginalGriff30-Apr-14 8:39 
QuestionPower point file formatter Pin
Taimoor Hassun29-Apr-14 18:21
Taimoor Hassun29-Apr-14 18:21 
AnswerRe: Power point file formatter Pin
Richard MacCutchan29-Apr-14 20:26
mveRichard MacCutchan29-Apr-14 20:26 
GeneralRe: Power point file formatter Pin
Taimoor Hassun29-Apr-14 21:00
Taimoor Hassun29-Apr-14 21:00 
GeneralRe: Power point file formatter Pin
Richard MacCutchan29-Apr-14 21:08
mveRichard MacCutchan29-Apr-14 21:08 
GeneralRe: Power point file formatter Pin
Taimoor Hassun30-Apr-14 4:54
Taimoor Hassun30-Apr-14 4:54 

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.