.net, C# and programming (Page 3)

Patterns: Specification

Specification pattern unites Domain-Driven Design, application architecture modeling and Entity Framework in C#. Specification pattern is designed to order business rules and connect our code to the business terms. This article shows an example of implementation with Entity Framework.

Read more...

Xml serializer - volatile api contract

Working with some API you expect that this API will stay stable and return the same type of result from call to call. But, sometimes it does not work this way. In the article I will tell about integration with SOAP-service and volatile contracts.

Read more...

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...