.net, C# and programming (Page 4)

Sleep well

How many ways to sleep a thread do you know?

Read more...

Debug enemy's code

I had several episodes in my .net development career, when I wanted to debug foreign code. The code, I have no sources access to, DLL only. Visual Studio has ability to debug code without sources.

This article is based on StackOverflow question where I tried to explain Unity behavior.

Read more...

Varieties of properties

Property is a flexible mechanism to access private fields (set and get value) and implement computations. Now we have different ways for implementing properties - from classic with backing field and get-set keywords to modern lambda-style. Let's find is there any difference between all these properties.

This article is based on StackOverflow question

Read more...

Who can foreach

This post is about popular question "What collection can be used in foreach statement?". If you think that correct answer is IEnumerable, read this post :)

Read more...

Null or NotNull

This topic is related to this question on StackOverflow. Let's discover, what are CanBeNull or NotNull attributes? How they work?

Read more...