Click here to Skip to main content
15,913,587 members
Home / Discussions / C#
   

C#

 
QuestionCheck for Filesystem Type NTFS / FAT .NET 1.1 [modified] Pin
Thomas Mihatsch10-Jan-07 3:49
Thomas Mihatsch10-Jan-07 3:49 
AnswerRe: Check for Filesystem Type NTFS / FAT Pin
jarellan10-Jan-07 3:51
jarellan10-Jan-07 3:51 
QuestionStreamWriter reuse? Pin
jarellan10-Jan-07 3:35
jarellan10-Jan-07 3:35 
AnswerRe: StreamWriter reuse? Pin
Guffa10-Jan-07 4:00
Guffa10-Jan-07 4:00 
GeneralRe: StreamWriter reuse? Pin
jarellan10-Jan-07 4:16
jarellan10-Jan-07 4:16 
GeneralRe: StreamWriter reuse? Pin
Colin Angus Mackay10-Jan-07 4:30
Colin Angus Mackay10-Jan-07 4:30 
GeneralRe: StreamWriter reuse? Pin
jarellan10-Jan-07 4:56
jarellan10-Jan-07 4:56 
AnswerRe: StreamWriter reuse? Pin
Guffa10-Jan-07 13:56
Guffa10-Jan-07 13:56 
jarellan wrote:
Is there a file stream oriented object more specialized in reusability?


No, there isn't.

Don't worry about creating a few objects, the memory management in .NET is built to handle that efficiently. Short lived objects are easily handled by the garbage collector, it's actually the objects that you hold on to a bit longer that gets more expensive.

As memory allocation is more expensive in C++, the classes are built for reusability. In .NET it's generally more efficient to just create a new object, so the classes are more often built to be used just once.

---
Year happy = new Year(2007);

GeneralRe: StreamWriter reuse? Pin
jarellan10-Jan-07 20:23
jarellan10-Jan-07 20:23 
Questionreading characters C# Pin
netJP12L10-Jan-07 3:32
netJP12L10-Jan-07 3:32 
AnswerRe: reading characters C# Pin
Not Active10-Jan-07 3:40
mentorNot Active10-Jan-07 3:40 
AnswerRe: reading characters C# Pin
Martin#10-Jan-07 3:42
Martin#10-Jan-07 3:42 
AnswerRe: reading characters C# [modified] Pin
Guffa10-Jan-07 4:02
Guffa10-Jan-07 4:02 
GeneralRe: reading characters C# Pin
netJP12L10-Jan-07 8:27
netJP12L10-Jan-07 8:27 
GeneralRe: reading characters C# Pin
Alaric_10-Jan-07 8:46
professionalAlaric_10-Jan-07 8:46 
AnswerRe: reading characters C# Pin
Guffa10-Jan-07 13:23
Guffa10-Jan-07 13:23 
GeneralRe: reading characters C# Pin
Alaric_10-Jan-07 14:20
professionalAlaric_10-Jan-07 14:20 
GeneralRe: reading characters C# Pin
Guffa10-Jan-07 20:47
Guffa10-Jan-07 20:47 
GeneralRe: reading characters C# Pin
Alaric_11-Jan-07 1:00
professionalAlaric_11-Jan-07 1:00 
GeneralRe: reading characters C# Pin
netJP12L15-Jan-07 4:54
netJP12L15-Jan-07 4:54 
QuestionDMVR Image stream? Pin
Gavin Roberts10-Jan-07 2:53
Gavin Roberts10-Jan-07 2:53 
AnswerRe: DMVR Image stream? Pin
ednrgc10-Jan-07 4:32
ednrgc10-Jan-07 4:32 
GeneralRe: DMVR Image stream? Pin
Gavin Roberts10-Jan-07 4:40
Gavin Roberts10-Jan-07 4:40 
GeneralRe: DMVR Image stream? Pin
Dan Neely10-Jan-07 4:44
Dan Neely10-Jan-07 4:44 
GeneralRe: DMVR Image stream? Pin
Gavin Roberts10-Jan-07 5:00
Gavin Roberts10-Jan-07 5:00 

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.