Text version of the video
[ Ссылка ]
Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.
[ Ссылка ]
Slides
[ Ссылка ]
All C# Text Articles
[ Ссылка ]
All C# Slides
[ Ссылка ]
All Dot Net and SQL Server Tutorials
[ Ссылка ]
In this video we will discuss the purpose of ParameterizedThreadStart delegate. This is continuation to Part 88. Please watch Part 88 before proceeding. We will be working with the same example we worked with in Part 88.
Use ParameterizedThreadStart delegate to pass data to the thread function.
When to use ParameterizedThreadStart over ThreadStart delegate?
Use ParameterizedThreadStart delegate if you have some data to pass to the Thread function, otherwise jus use ThreadStart delegate.
Please note: Using ParameterizedThreadStart delegate and Thread.Start(Object) method to pass data to the Thread function is not type safe as they operate on object datatype and any type of data can be passed. If you try to change the data type of the target parameter of PrintNumbers() function from object to int, a compiler error will be raised as the signature of PrintNumbers() function does not match with the signature of ParameterizedThreadStart delegate.
Next Video: Passing data to the Thread function without loosing the type saftey.
![](https://i.ytimg.com/vi/pGKn2sOZBGg/mqdefault.jpg)