Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Partial delegates are not allowed in C#?

Tags:

c#

delegates

Recent interview question is

If C# language allow us create partial delegates what are the consequences will you meet?

Help me to understand the reason.

Thanks in advance.

like image 523
Amutha Avatar asked Dec 21 '22 19:12

Amutha


1 Answers

You should ask for clarification on this question. Because C# does support creating a delegate to a partial method as long as the partial method has been implemented. If this is what the question is implying then I guess 'the consequence you will meet' is that the partial method must be implemented and not only defined.

The wording 'create partial delegate' does not make any sense since we have no definition of what a partial delegate might be.

like image 116
Chris Taylor Avatar answered Jan 06 '23 01:01

Chris Taylor