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 |
Using com component in .net?
What is .net and .net framework?
Describe the compilation process for .net code?
How do you create threading in.net?
What are .net applications?
Explain how garbage collection works?
diff between forms authentication and windows authentication?
What are the core differences between .NET Languages ?
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?
What are nullable types in .NET
1 Answers TryTechnicals Pvt Ltd,
Why MVC programming model preferred?
What is garbage collection? Explain the difference between garbage collections in .net 4.0 and earlier versions?