Automatic Scott encoding for C#.