How to instantiate a delegate?



How to instantiate a delegate?..

Answer / Sumit Kumar Srivastav

In .NET (C#), you can instantiate a delegate by creating an instance of the delegate type and assigning a method to it. Here's an example:nDelegateType myDelegate = new DelegateType(method);

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

Using com component in .net?

1 Answers  


What is .net and .net framework?

1 Answers  


Describe the compilation process for .net code?

1 Answers  


How do you create threading in.net?

1 Answers  


What are .net applications?

1 Answers  


Explain how garbage collection works?

1 Answers  


diff between forms authentication and windows authentication?

11 Answers  


What are the core differences between .NET Languages ?

1 Answers   TCS,


Usually in .net, the clr takes care of memory management. Is there any need for a programmer to explicitly release memory and resources? If yes, why and how?

1 Answers  


What are nullable types in .NET

1 Answers   TryTechnicals Pvt Ltd,


Why MVC programming model preferred?

1 Answers  


What is garbage collection? Explain the difference between garbage collections in .net 4.0 and earlier versions?

1 Answers  


Categories