Span<T> is yet another addition to C# 7.x and is particularly useful in developing memory intensive applications. So what is Span all about ? As Microsoft describes it, Span<T> is a new value Type which enables the representation of contiguous regions of arbitrary memory, regardless of whether the memory is associated with a managed … Continue reading Benchmarking Span<T> Performance
Day: March 16, 2018
Ref Value Type
In an earlier post, we discussed the readability factor of the reference semantics, mentioning how it kind of makes the code less readable. However, that doesn't take away the big door of opportunities the new features add. Consider the following scenario. Now, prior to C# 7, this was difficult. There was no way we could … Continue reading Ref Value Type