Click here to Skip to main content
15,898,035 members
Home / Discussions / C#
   

C#

 
GeneralRe: Singleton with a twist Pin
Matt Gerrans7-Jan-05 20:42
Matt Gerrans7-Jan-05 20:42 
GeneralRe: Singleton with a twist Pin
bigals8-Jan-05 11:25
bigals8-Jan-05 11:25 
GeneralRe: Singleton with a twist Pin
Matt Gerrans9-Jan-05 19:51
Matt Gerrans9-Jan-05 19:51 
GeneralRe: Singleton with a twist Pin
bigals9-Jan-05 19:57
bigals9-Jan-05 19:57 
Question"How Get Type of File ? Pin
WDI3-Jan-05 6:14
WDI3-Jan-05 6:14 
AnswerRe: "How Get Type of File ? Pin
Bahadir Cambel3-Jan-05 9:05
Bahadir Cambel3-Jan-05 9:05 
AnswerRe: "How Get Type of File ? Pin
DavidNohejl3-Jan-05 10:11
DavidNohejl3-Jan-05 10:11 
GeneralRe: "How Get Type of File ? Pin
Bahadir Cambel3-Jan-05 10:22
Bahadir Cambel3-Jan-05 10:22 
Its not ugly unless you are only going to list the items.. and you dont want to deal with windows Wink | ;)
By the way, the first code that I wrote down, is for a given path...
But if you want to search all items in a directory and get all the types , the following code will be sufficient..
and dont forget to add using System.File Poke tongue | ;-P
<br />
string[] files = Directory.GetFiles(workingDirectory);<br />
<br />
foreach (string s in files)<br />
{<br />
FileInfo fi = new FileInfo(s);<br />
fi.Extension//the desired method for use<br />
//and if necessary , Switch to catch desired file typess<br />


Roll eyes | :rolleyes:
I dont know anything about the above coding sample , but I searched a little bit , and I remembered FileInfo , and the following article ("CrytoSave"-chech it out), made the message constructed Smile | :) Thats the reason why I love CPBig Grin | :-D
GeneralRe: &quot;How Get Type of File ? Pin
DavidNohejl3-Jan-05 10:51
DavidNohejl3-Jan-05 10:51 
GeneralRe: &quot;How Get Type of File ? Pin
Bahadir Cambel3-Jan-05 11:42
Bahadir Cambel3-Jan-05 11:42 
General.NET Remote - Activator.GetObject Pin
Wender Oliveira3-Jan-05 5:21
Wender Oliveira3-Jan-05 5:21 
GeneralRe: .NET Remote - Activator.GetObject Pin
Adam Goossens9-Jan-05 23:48
Adam Goossens9-Jan-05 23:48 
GeneralFile to byte[ ] Pin
WDI3-Jan-05 4:43
WDI3-Jan-05 4:43 
GeneralRe: File to byte[ ] Pin
Wender Oliveira3-Jan-05 5:15
Wender Oliveira3-Jan-05 5:15 
GeneralRe: File to byte[ ] Pin
Dennis C. Dietrich3-Jan-05 7:40
Dennis C. Dietrich3-Jan-05 7:40 
QuestionHow to build patch Pin
Newbie_Toy3-Jan-05 3:34
Newbie_Toy3-Jan-05 3:34 
GeneralSaving Text Versions Pin
Darren Pruitt3-Jan-05 3:19
Darren Pruitt3-Jan-05 3:19 
GeneralRe: Saving Text Versions Pin
leppie3-Jan-05 5:55
leppie3-Jan-05 5:55 
GeneralInterfaces Pin
Bahadir Cambel3-Jan-05 0:05
Bahadir Cambel3-Jan-05 0:05 
GeneralRe: Interfaces Pin
jan larsen3-Jan-05 1:32
jan larsen3-Jan-05 1:32 
GeneralRe: Interfaces Pin
Bahadir Cambel3-Jan-05 8:59
Bahadir Cambel3-Jan-05 8:59 
GeneralRe: Interfaces Pin
DavidNohejl3-Jan-05 9:53
DavidNohejl3-Jan-05 9:53 
GeneralRe: Interfaces Pin
Bahadir Cambel3-Jan-05 11:52
Bahadir Cambel3-Jan-05 11:52 
GeneralRe: Interfaces Pin
DavidNohejl3-Jan-05 12:30
DavidNohejl3-Jan-05 12:30 
GeneralRe: Interfaces Pin
Bahadir Cambel3-Jan-05 14:27
Bahadir Cambel3-Jan-05 14:27 

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.