
Topic Name
Introduction to C#
Environment Setup
C# Keywords
Contextual Keywords
C# Namespaces
What Is Class?
What is Object?
Data Types
Nullable Types
C# Variables
What are Access Modifiers?
What is Property?
What is Indexer?
Hello world Program
What is Type conversion?
What is if else condition?
What is Array?
What is Jagged Array?
What is ArrayList?
What is List?
What is string and StringBuilder?
What is for loop?
What is foreach loop?
What is switch?
What is Method?
What is method overloading?
What is Constructor?
What is constructor overloading?
What is Boxing and Unboxing?
What is delegate in C# and uses of delegates?
What is Inheritance?
What are Value types and Reference types?
What is Exception Handling?
What is struct?
What is Dictionary?
What is Hashtable?
What is interface?
What is Abstraction?
What is Polymorphism?
What is Enums?
What is Sealed Class?
What is Partial Class?
Extension Methods?
What is static?
What is Encapsulation?
Difference between Equality Operator (==) and Equals() Method in C# ?
What is IEnumerable?
What is Serializing?
What is LINQ?
Differences between IEnumerable and IQueryable?
What is Multithreading?
What is File Handling?
What is late binding and early binding?
What is Singleton Design Patterns?
Thread: Thread is a light weight process. A process has at least one thread which is commonly called as main thread which actually executes the application code. A single process can have multiple threads.
Note: All the threading related classes are present in System.Threading namespace. Now given bellow the example code and explain the code:
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using testForClass1;
namespace testFor
{
public class Jesy
{
public static void method1()
{
for (int I = 0; I <= 10; I++)
{
Console.WriteLine("Method1 is : {0}", I);
if (I == 5)
{
Thread.Sleep(6000);
}
}
}
public static void method2()
{
for (int J = 0; J <= 10; J++)
{
Console.WriteLine("Method2 is : {0}", J);
}
}
}
public class Program
{
static void Main(string[] args)
{
Jesy.method1();
Jesy.method2();
Console.Read();
}
}
}
We can see the jesy class contain the two-method name as method1 and method2. This method is sleeping the at a time to process the data and after process then method2 is work it called Multithreading. Multithreading means processing nothing else.