Click here to Skip to main content
15,889,595 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionThe remote server returned an error: (401) Unauthorized Help Please Pin
J71rivera12-Dec-09 20:40
J71rivera12-Dec-09 20:40 
AnswerRe: The remote server returned an error: (401) Unauthorized Help Please Pin
Mark Salsbery13-Dec-09 8:19
Mark Salsbery13-Dec-09 8:19 
QuestionMultithreading in WinForm/WPF Application Pin
sandeepranjan11-Dec-09 15:11
sandeepranjan11-Dec-09 15:11 
AnswerRe: Multithreading in WinForm/WPF Application Pin
Super Lloyd15-Dec-09 17:52
Super Lloyd15-Dec-09 17:52 
AnswerRe: Multithreading in WinForm/WPF Application Pin
Super Lloyd17-Dec-09 0:19
Super Lloyd17-Dec-09 0:19 
QuestionVSTO Excel c# UDF error when pass params Object[] Pin
Diego Gagliano10-Dec-09 14:02
Diego Gagliano10-Dec-09 14:02 
QuestionHow does IDisposable Interface Generate Dispose sub? Pin
Polymorpher10-Dec-09 5:43
Polymorpher10-Dec-09 5:43 
AnswerRe: How does IDisposable Interface Generate Dispose sub? Pin
Paulo Zemek10-Dec-09 6:42
mvaPaulo Zemek10-Dec-09 6:42 
It's simple. The interface says that the object can be disposed before all references to it dies. The interface only says that.

But, the common all-purposes implementation (the Dispose pattern) says that:
Dispose() methods calls a virtual method Dispose that receives a boolean (true) and then calls GC.SuppressFinalize(this) and the destructor calls Dispose(false).

So, if you want your code to have somme implementation, you will at least need to implement a class (say MyDisposable) that implements IDisposable (so the using keyword can work with it) and implements Dispose to call:
Dispose(true);
GC.SupressFinalize(this);

And then, you make only the Dispose(disposing) virtual.
You can even make your "only call once" approach inside the non-virtual Dispose().
GeneralRe: How does IDisposable Interface Generate Dispose sub? Pin
Polymorpher10-Dec-09 12:55
Polymorpher10-Dec-09 12:55 
GeneralRe: How does IDisposable Interface Generate Dispose sub? Pin
Mark Salsbery10-Dec-09 13:00
Mark Salsbery10-Dec-09 13:00 
GeneralRe: How does IDisposable Interface Generate Dispose sub? Pin
Paulo Zemek10-Dec-09 13:26
mvaPaulo Zemek10-Dec-09 13:26 
GeneralRe: How does IDisposable Interface Generate Dispose sub? Pin
Polymorpher10-Dec-09 14:41
Polymorpher10-Dec-09 14:41 
GeneralRe: How does IDisposable Interface Generate Dispose sub? Pin
The Man from U.N.C.L.E.14-Dec-09 0:12
The Man from U.N.C.L.E.14-Dec-09 0:12 
GeneralRe: How does IDisposable Interface Generate Dispose sub? Pin
Polymorpher14-Dec-09 2:06
Polymorpher14-Dec-09 2:06 
QuestionNeed help with the event based async pattern Pin
Jeroen De Dauw10-Dec-09 4:55
Jeroen De Dauw10-Dec-09 4:55 
AnswerRe: Need help with the event based async pattern Pin
Ashfield11-Dec-09 1:21
Ashfield11-Dec-09 1:21 
GeneralRe: Need help with the event based async pattern Pin
Jeroen De Dauw11-Dec-09 3:25
Jeroen De Dauw11-Dec-09 3:25 
GeneralRe: Need help with the event based async pattern Pin
Ashfield11-Dec-09 9:29
Ashfield11-Dec-09 9:29 
QuestionExport to excel [modified] Pin
Uma J10-Dec-09 0:16
Uma J10-Dec-09 0:16 
AnswerRe: Export to excel Pin
dan!sh 10-Dec-09 1:18
professional dan!sh 10-Dec-09 1:18 
AnswerRe: Export to excel Pin
Ashfield10-Dec-09 1:24
Ashfield10-Dec-09 1:24 
AnswerRe: Export to excel Pin
Dave Kreskowiak10-Dec-09 4:26
mveDave Kreskowiak10-Dec-09 4:26 
AnswerRe: Export to excel Pin
The Man from U.N.C.L.E.11-Dec-09 22:57
The Man from U.N.C.L.E.11-Dec-09 22:57 
QuestionPOP3 Class Pin
joelle@scope9-Dec-09 2:17
joelle@scope9-Dec-09 2:17 
AnswerRe: POP3 Class Pin
Richard MacCutchan9-Dec-09 3:26
mveRichard MacCutchan9-Dec-09 3:26 

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.