This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a .NET 3.5 console app, compiled with the C# 6 compiler from CTP6 | |
using System; | |
namespace System.Runtime.CompilerServices | |
{ | |
public class FormattableStringFactory | |
{ | |
public static FormattableString Create(string messageFormat, params object[] args) | |
{ | |
return new FormattableString(messageFormat, args); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* OUTPUT | |
tick tock | |
I'm the second handler of the tick event | |
I'm on the dispatcher thread | |
I'm on a thread pool thread | |
I just got value 42 sent to me and I'm on the dispatcher loop thread | |
I'm on a thread pool thread and shutting down dispatcher safely | |
exiting... |