.Net

.Net Tips – How to determine if a type implements a generic interface type

When you have a generic interface such as: It’s easy to check whether a given instance implements the IInitializable interface with a specific T: But what if you want to find out if a type implements the IInitializable interface of an arbitrary T? You won’t be able to simply get away with this: Instead, you …

.Net Tips – How to determine if a type implements a generic interface type Read More »

Functional programming with Linq – Enumerable.SequenceEqual

Yet another useful method on the Enumerable class, the SequenceEqual method does exactly what it says on the tin and tells you whether or not two sequences are of equal length and their corresponding elements are equal according to either the default or supplied equality comparer: As you know, for reference types the default equality …

Functional programming with Linq – Enumerable.SequenceEqual Read More »

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close