![]() Related Questions C# requires only a single parameter for delegates: the method address. Unlike other languages, where the programmer must specify an object reference and the method to invoke, C# can infer both pieces of Latest Answer : This article is good.IntroductionIn this article I am going to share my knowledge on Delegates in C#.This would explain the Delegate using simple examples so that the beginner can understand the same.What is Delegate?Definition:Delegate is type which ... Some sample code follows: using System;using System.Threading;class ThreadTest {public void runme() {Console.WriteLine("Runme Called");} public static void Main(String[] args) {ThreadTest b = Latest Answer : Ans:using System;using System.Threading;class ThreadTest {public void runme() {Console.WriteLine("Runme Called");} public static void Main(String[] args) {ThreadTest b = new ThreadTest();Thread t = new Thread(new ThreadStart(b.runme));t.Start();}} ... .NET FRAMEWORK1. What is .NET Framework?The .NET Framework has two main components: the common language runtime and the .NET Framework class library.You can think of the runtime as an agent that manages Latest Answer : The .NET framework is a platform over which multiple languages are running.The 2 main components are
1. FRAMEWORK CLASS LIBRARY2. COMMON LANGUAGE RUNTIMEIt's features like CTS provide Cross Language Interoprabality.The CLR is the main Governing body ... Read Answers (1) | Asked by : Prasanna Muthukrishnan Write a very simple multi threaded program in C#. 1. The program should create two threads that each add data to the same list at the same time. Then after they are both done, print out the entire list. Latest Answer : See code below. In practice, the Thread.Sleep() is required - otherwise each thread will complete its work in a single time-slice before the other gets a chance to start. An improvement would be to create a "work item" class for the that would ...
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||