Skip to content

Instantly share code, notes, and snippets.

View thomaslevesque's full-sized avatar

Thomas Levesque thomaslevesque

View GitHub Profile
// 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);
using System.ComponentModel;
using System.Globalization;
using System.Resources;
using System.Windows.Data;
public class TranslationSource
: INotifyPropertyChanged
{
private static readonly TranslationSource instance = new TranslationSource();