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

.NET (Core and Framework)

 
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 
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 
It's impossible.
Interfaces only says: The method exist.

You can, of course, do:

IMyInterface

(with some methods)

BaseClassThatImplementsIMyInterface
A class with virtual methods that implements the interface and, so, can create the basic functionality.

You can also create a helper class.
For example:
IMyInterface -> MyMethod

If your class comes from some other base class, it can implement IMyInterface and, in MyMethod, call

MyInterfaceBasicImplementation.MyMethod()

And, finally, you can create extension methods using interfaces.
So, for example:

IDictionary has the TryGetValue method.
I implemented a method called GetValueOrDefault as an extension method. It is NOT virtual, but as the TryGetValue is, it is enough for me.
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 
QuestionType inference problem [modified/solved] Pin
Gideon Engelberth8-Dec-09 13:50
Gideon Engelberth8-Dec-09 13:50 
Questionhow to use .net framework with c++; Pin
geniuspc8-Dec-09 12:04
geniuspc8-Dec-09 12:04 
AnswerRe: how to use .net framework with c++; Pin
DaveyM698-Dec-09 12:34
professionalDaveyM698-Dec-09 12:34 

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.