Click here to Skip to main content
15,885,366 members
Home / Discussions / C#
   

C#

 
QuestionRe: Transfer info from Form1 to Form2 Pin
nelsonpaixao4-May-08 16:35
nelsonpaixao4-May-08 16:35 
Questionadditional tasks in setup project Pin
Knowledgestudent1-May-08 14:31
Knowledgestudent1-May-08 14:31 
AnswerRe: additional tasks in setup project Pin
Christian Graus1-May-08 15:59
protectorChristian Graus1-May-08 15:59 
GeneralRe: additional tasks in setup project Pin
Knowledgestudent1-May-08 22:21
Knowledgestudent1-May-08 22:21 
GeneralRe: additional tasks in setup project Pin
Christian Graus2-May-08 12:04
protectorChristian Graus2-May-08 12:04 
Questionmultiple datatypes inside the same array? Pin
Grubious1-May-08 13:51
Grubious1-May-08 13:51 
AnswerRe: multiple datatypes inside the same array? Pin
Grubious1-May-08 14:53
Grubious1-May-08 14:53 
QuestionAnonymous instance implementing IDisposable interface Pin
Spacix One1-May-08 12:00
Spacix One1-May-08 12:00 
Today I found myself writing / reading binary image files, and I caught myself writing the following on a read:
using(fileReader = new BinaryReader(new FileStream(filePathName, FileMode.Open)))
{
   //process the file here
}

Before I corrected my self, it got me thinking what exactly happens to anonymous instance members that are implementing the IDisposable interface? Would it be lost after the child instance is the finalized by sitting and waiting to be Garbage Collected? Or in the above example would the FileStream be picked up with the BinaryReader?

I do know that if you finalize the parent an instance is based off of, both get finalized... I know not as to what happens above??? Frown | :(


This might even be a good article, if you could find it among the 1000's of hits on this topics keywords.
plz send teh codez? Unsure | :~



-Spacix
All your skynet questions[^] belong to solved

I dislike the black-and-white voting system on questions/answers. Dead | X|

AnswerRe: Anonymous instance implementing IDisposable interface Pin
N a v a n e e t h1-May-08 20:50
N a v a n e e t h1-May-08 20:50 
RantRe: Anonymous instance implementing IDisposable interface Pin
Spacix One2-May-08 3:14
Spacix One2-May-08 3:14 
QuestionIs there a way to the label the ticks in the TrackBar Pin
bscaer1-May-08 11:28
bscaer1-May-08 11:28 
AnswerRe: Is there a way to the label the ticks in the TrackBar Pin
Christian Graus1-May-08 11:51
protectorChristian Graus1-May-08 11:51 
QuestionCodeDom Problem. Pin
hdv2121-May-08 10:02
hdv2121-May-08 10:02 
AnswerRe: CodeDom Problem. Pin
John_Adams1-May-08 22:17
John_Adams1-May-08 22:17 
QuestionThreads in Windows service Pin
RoyceF1-May-08 8:38
RoyceF1-May-08 8:38 
AnswerRe: Threads in Windows service Pin
PIEBALDconsult1-May-08 9:31
mvePIEBALDconsult1-May-08 9:31 
AnswerRe: Threads in Windows service Pin
Urs Enzler1-May-08 10:03
Urs Enzler1-May-08 10:03 
GeneralRe: Threads in Windows service Pin
RoyceF1-May-08 11:06
RoyceF1-May-08 11:06 
GeneralRe: Threads in Windows service Pin
Gareth H1-May-08 11:19
Gareth H1-May-08 11:19 
GeneralRe: Threads in Windows service Pin
RoyceF1-May-08 11:36
RoyceF1-May-08 11:36 
GeneralRe: Threads in Windows service Pin
RoyceF1-May-08 11:27
RoyceF1-May-08 11:27 
GeneralRe: Threads in Windows service Pin
RoyceF1-May-08 11:40
RoyceF1-May-08 11:40 
QuestionWindows Mobile 5 - moving selected form items up when osk activated Pin
Spacedmc1-May-08 7:57
Spacedmc1-May-08 7:57 
AnswerRe: Windows Mobile 5 - moving selected form items up when osk activated Pin
Arjun Marwaha1-May-08 11:30
Arjun Marwaha1-May-08 11:30 
Questionimport/Export Xml into a hastable Pin
Member 40084921-May-08 6:18
Member 40084921-May-08 6:18 

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.