static AmqpEncoding()

in src/Encoding/AmqpEncoding.cs [41:106]


        static AmqpEncoding()
        {
            encodingsByType = new Dictionary<Type, IEncoding>()
            {
                { typeof(bool),             Boolean },
                { typeof(byte),             UByte },
                { typeof(ushort),           UShort },
                { typeof(uint),             UInt },
                { typeof(ulong),            ULong },
                { typeof(sbyte),            Byte },
                { typeof(short),            Short },
                { typeof(int),              Int },
                { typeof(long),             Long },
                { typeof(float),            Float },
                { typeof(double),           Double },
                { typeof(decimal),          Decimal },
                { typeof(char),             Char },
                { typeof(DateTime),         Timestamp },
                { typeof(Guid),             Uuid },
                { typeof(ArraySegment<byte>), Binary },
                { typeof(AmqpSymbol),       Symbol },
                { typeof(string),           String },
                { typeof(AmqpMap),          Map },
            };

            encodingsByCode = new Dictionary<FormatCode, IEncoding>()
            {
                { FormatCode.BooleanFalse,  Boolean },
                { FormatCode.BooleanTrue,   Boolean },
                { FormatCode.Boolean,       Boolean },
                { FormatCode.UByte,         UByte },
                { FormatCode.UShort,        UShort },
                { FormatCode.UInt,          UInt },
                { FormatCode.SmallUInt,     UInt },
                { FormatCode.UInt0,         UInt },
                { FormatCode.ULong,         ULong },
                { FormatCode.SmallULong,    ULong },
                { FormatCode.ULong0,        ULong },
                { FormatCode.Byte,          Byte },
                { FormatCode.Short,         Short },
                { FormatCode.Int,           Int },
                { FormatCode.SmallInt,      Int },
                { FormatCode.Long,          Long },
                { FormatCode.SmallLong,     Long },
                { FormatCode.Float,         Float },
                { FormatCode.Double,        Double },
                { FormatCode.Decimal128,    Decimal },
                { FormatCode.Char,          Char },
                { FormatCode.TimeStamp,     Timestamp },
                { FormatCode.Uuid,          Uuid },
                { FormatCode.Binary8,       Binary },
                { FormatCode.Binary32,      Binary },
                { FormatCode.Symbol8,       Symbol },
                { FormatCode.Symbol32,      Symbol },
                { FormatCode.String8Utf8,   String },
                { FormatCode.String32Utf8,  String },
                { FormatCode.List0,         List },
                { FormatCode.List8,         List },
                { FormatCode.List32,        List },
                { FormatCode.Map8,          Map },
                { FormatCode.Map32,         Map },
                { FormatCode.Array8,        Array },
                { FormatCode.Array32,       Array },
                { FormatCode.Described,     Described }
            };
        }