Demo implementation to answer a stackoverflow question
Primary LanguageC#
http://stackoverflow.com/a/43150868/2226079