Themes for WPF and Silverlight that can serve as is or as inspiration: Installing Infragistics Free Themes using Nuget – Brian Lagunas’ XAML Blog.
Month: March 2015
Azure AD Authentication Library for .NET
A new library useful to authenticate against AD Azure AD Authentication Library for .NET.
Some exemple on how to use it are hosted on github. Native Client WPF Application to Web API details how to securely store token into a file protected by API and how to clear cookies from the browser control used by ADAL (too much complicated with a dll import of InternetSetOption).
How to solve some NuGet Assembly Redirects errors
This post show us how to correct some assembly redirect errors that can occurred after an nuget update: Could not load file or assembly… NuGet Assembly Redirects.
It also give useful links.
Microsoft.IO.RecyclableMemoryStream
Accidentally found, Microsoft.IO.RecyclableMemoryStream is a smart implementation of MemoryStream.
It use small buffers (128kb by default) managed by a shared RecyclableMemoryStreamManager. This prevents allocation of large buffer in streaming mode and promote reuse.
A second pool of large buffer (multiples of 1 Mb) is only used in case of GetBuffer usage (where a byte[] must be returned).