Click here to Skip to main content
15,798,200 members
Home / Discussions / C#
   

C#

 
AnswerRe: SQL Connection string ignoring UserID Pin
Jochen Arndt23-Jan-18 3:25
professionalJochen Arndt23-Jan-18 3:25 
QuestionHow can i send text to the Devline camera? Pin
Member 1312505223-Jan-18 0:29
Member 1312505223-Jan-18 0:29 
AnswerRe: How can i send text to the Devline camera? Pin
Pete O'Hanlon23-Jan-18 0:31
subeditorPete O'Hanlon23-Jan-18 0:31 
QuestionWPF C# check if logged on with MS account Pin
Member 798746122-Jan-18 23:50
Member 798746122-Jan-18 23:50 
AnswerRe: WPF C# check if logged on with MS account Pin
Richard Deeming23-Jan-18 1:29
mveRichard Deeming23-Jan-18 1:29 
GeneralRe: WPF C# check if logged on with MS account Pin
Member 798746123-Jan-18 2:03
Member 798746123-Jan-18 2:03 
Questionis there a way to define the signature of a delegate in an interface without defining the signature twice? Pin
joost.versteegen22-Jan-18 0:38
joost.versteegen22-Jan-18 0:38 
AnswerRe: is there a way to define the signature of a delegate in an interface without defining the signature twice? Pin
Nathan Minier22-Jan-18 2:15
professionalNathan Minier22-Jan-18 2:15 
So you're not really defining it twice; you're defining it once and then defining a delegate with a matching signature in the interface,

Here's what I think you're looking for:
C#
public delegate void CounterChangedHandler(object source, CounterChangedEventArgs e); 

public interface ICounterProcessor
{
  CounterChangedHandler CounterChanged { get; }
}

When you have pre-defined delegates like this, you can use them in the same way that you would Action or Func.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli


modified 22-Jan-18 7:56am.

GeneralRe: is there a way to define the signature of a delegate in an interface without defining the signature twice? Pin
joost.versteegen22-Jan-18 2:31
joost.versteegen22-Jan-18 2:31 
GeneralRe: is there a way to define the signature of a delegate in an interface without defining the signature twice? Pin
Nathan Minier22-Jan-18 3:00
professionalNathan Minier22-Jan-18 3:00 
SuggestionRe: is there a way to define the signature of a delegate in an interface without defining the signature twice? Pin
Richard Deeming22-Jan-18 9:11
mveRichard Deeming22-Jan-18 9:11 
GeneralRe: is there a way to define the signature of a delegate in an interface without defining the signature twice? Pin
joost.versteegen22-Jan-18 22:17
joost.versteegen22-Jan-18 22:17 
QuestionWPF C# Messagebox Result Issue Pin
Derek Kennard21-Jan-18 20:30
professionalDerek Kennard21-Jan-18 20:30 
AnswerRe: WPF C# Messagebox Result Issue Pin
phil.o22-Jan-18 0:03
professionalphil.o22-Jan-18 0:03 
GeneralRe: WPF C# Messagebox Result Issue Pin
Derek Kennard22-Jan-18 7:37
professionalDerek Kennard22-Jan-18 7:37 
GeneralRe: WPF C# Messagebox Result Issue Pin
phil.o22-Jan-18 7:40
professionalphil.o22-Jan-18 7:40 
GeneralRe: WPF C# Messagebox Result Issue Pin
Derek Kennard22-Jan-18 8:43
professionalDerek Kennard22-Jan-18 8:43 
GeneralRe: WPF C# Messagebox Result Issue Pin
Derek Kennard23-Jan-18 9:05
professionalDerek Kennard23-Jan-18 9:05 
GeneralRe: WPF C# Messagebox Result Issue Pin
phil.o23-Jan-18 12:53
professionalphil.o23-Jan-18 12:53 
QuestionCoding Moveable Elements for Games or Whatever Pin
Member 1358827720-Jan-18 3:03
Member 1358827720-Jan-18 3:03 
SuggestionRe: Coding Moveable Elements for Games or Whatever Pin
Richard MacCutchan20-Jan-18 4:01
mveRichard MacCutchan20-Jan-18 4:01 
AnswerRe: Coding Moveable Elements for Games or Whatever Pin
BillWoodruff20-Jan-18 6:17
professionalBillWoodruff20-Jan-18 6:17 
AnswerRe: Coding Moveable Elements for Games or Whatever Pin
Eddy Vluggen21-Jan-18 4:10
professionalEddy Vluggen21-Jan-18 4:10 
GeneralRe: Coding Moveable Elements for Games or Whatever Pin
Nathan Minier22-Jan-18 2:21
professionalNathan Minier22-Jan-18 2:21 
GeneralRe: Coding Moveable Elements for Games or Whatever Pin
Member 1358827722-Jan-18 6:47
Member 1358827722-Jan-18 6:47 

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.