Click here to Skip to main content
15,886,518 members
Home / Discussions / C#
   

C#

 
AnswerRe: project Convert of Binary To Decimal Pin
OriginalGriff3-May-16 19:43
mveOriginalGriff3-May-16 19:43 
AnswerRe: project Convert of Binary To Decimal Pin
Patrice T3-May-16 21:56
mvePatrice T3-May-16 21:56 
AnswerRe: project Convert of Binary To Decimal Pin
Pete O'Hanlon3-May-16 23:32
mvePete O'Hanlon3-May-16 23:32 
AnswerRe: project Convert of Binary To Decimal Pin
DaveyM694-May-16 4:21
professionalDaveyM694-May-16 4:21 
Questioninterface inherits from interface, method over-ridden: my brain is stuck Pin
BillWoodruff3-May-16 7:24
professionalBillWoodruff3-May-16 7:24 
AnswerRe: interface inherits from interface, method over-ridden: my brain is stuck Pin
Sascha Lefèvre3-May-16 10:20
professionalSascha Lefèvre3-May-16 10:20 
GeneralRe: interface inherits from interface, method over-ridden: my brain is stuck Pin
BillWoodruff4-May-16 2:55
professionalBillWoodruff4-May-16 2:55 
GeneralRe: interface inherits from interface, method over-ridden: my brain is stuck Pin
Sascha Lefèvre4-May-16 4:45
professionalSascha Lefèvre4-May-16 4:45 
BillWoodruff wrote:
I suppose there's an outside chance that what I may be observing here has something to do with the "nature" of the 'Action and 'Func delegates
No, it's unrelated.

BillWoodruff wrote:
But, then, what is the use of over-riding hiding in an Interface for ? Why allow it ?
Basically to allow exactly what you want:
Consider implementing interface members explicitly to simulate variance (that is, change parameters or return type in overridden members).

This is often done to offer strongly-typed versions of the interface members.
The VMouseDown-member from IViewModel is only hidden in IControl, not overridden or re-defined. The wording in the above quote is actually misleading in this regard.

The reason the hidden member from IViewModel has still to be implemented by a class implementing IControl (I understand that this is the point of your 'confusion') is polymorphism: IControl is IViewModel because it inherits from it, so it's required to be possible to pass an object of a class that implements IControl to a method that takes an IViewModel-parameter (which could make use of the VMouseDown-member as declared in IViewModel).
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson


modified 4-May-16 11:16am.

GeneralRe: interface inherits from interface, method over-ridden: my brain is stuck Pin
BillWoodruff4-May-16 8:49
professionalBillWoodruff4-May-16 8:49 
QuestionC# Get system information on remote computer and display result in a listbox Pin
oluwatosin agbabiaka2-May-16 15:15
oluwatosin agbabiaka2-May-16 15:15 
AnswerRe: C# Get system information on remote computer and display result in a listbox Pin
Garth J Lancaster2-May-16 15:51
professionalGarth J Lancaster2-May-16 15:51 
AnswerRe: C# Get system information on remote computer and display result in a listbox Pin
Pete O'Hanlon2-May-16 19:34
mvePete O'Hanlon2-May-16 19:34 
AnswerRe: C# Get system information on remote computer and display result in a listbox Pin
ZurdoDev3-May-16 3:07
professionalZurdoDev3-May-16 3:07 
QuestionGet 802.11 frames from access point ? Pin
mohammed qaid2-May-16 12:55
mohammed qaid2-May-16 12:55 
AnswerRe: Get 802.11 frames from access point ? Pin
Nathan Minier3-May-16 1:45
professionalNathan Minier3-May-16 1:45 
GeneralRe: Get 802.11 frames from access point ? Pin
mohammed qaid3-May-16 7:52
mohammed qaid3-May-16 7:52 
GeneralRe: Get 802.11 frames from access point ? Pin
Nathan Minier3-May-16 7:59
professionalNathan Minier3-May-16 7:59 
GeneralRe: Get 802.11 frames from access point ? Pin
mohammed qaid3-May-16 12:45
mohammed qaid3-May-16 12:45 
QuestionHow can I change the default maximum size of windows? Pin
Member 114640432-May-16 9:20
Member 114640432-May-16 9:20 
AnswerRe: How can I change the default maximum size of windows? Pin
Eddy Vluggen3-May-16 3:40
professionalEddy Vluggen3-May-16 3:40 
AnswerRe: How can I change the default maximum size of windows? Pin
BillWoodruff3-May-16 9:09
professionalBillWoodruff3-May-16 9:09 
QuestionApp Started With Rundll32.exe - Check If Open And Close It Pin
Kevin Marois2-May-16 8:00
professionalKevin Marois2-May-16 8:00 
AnswerRe: App Started With Rundll32.exe - Check If Open And Close It Pin
OriginalGriff2-May-16 8:08
mveOriginalGriff2-May-16 8:08 
AnswerRe: App Started With Rundll32.exe - Check If Open And Close It Pin
OriginalGriff2-May-16 8:13
mveOriginalGriff2-May-16 8:13 
GeneralRe: App Started With Rundll32.exe - Check If Open And Close It Pin
Kevin Marois2-May-16 8:48
professionalKevin Marois2-May-16 8:48 

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.