.net, C# and programming (Page 4)

NDepend: first overview Read in English

There are a bunch of tools that help c#-developers write code better, more performant and with a better quality. NDepend is one of them. Here is my experience of using this tool.

Read more...

ASP .NET WebApi: Model validation Read in English

You may know about ValidationAttribute. First appeared with .NET Framework 3.5 it is still used for validation. This article is about data model validation in ASP.NET WebApi.

Read more...

LINQ: Group by byte Read in English

LINQ is a powerful tool for collection (or enumeration) operating. You use functional-like syntax for filtering, grouping, transforming data. All LINQ methods work with common interface IEnumerable<T> and usually methods do not check real type of collection, or data type. Sometimes, if you know the type of collection or generic type, you can optimize code for better performance (like in Any vs Count).

This article will show, how you can speed up grouping by specific key - byte.

Read more...

LINQ: Any() vs Count Читать на русском

Эта статья началась с обсуждения на Stack Overflow: Why LINQ method Any does not check Count?. Здесь мы сравним производительность методов Any и Count != 0.

Read more...

LINQ: Any vs Count Read in English

This post started from discussion on SO: Why LINQ method Any does not check Count? This article shows a comparison of performance methods Any and Count = 0.

Read more...