示例#1
0
        public global::DFrame.WorkloadParameterInfo Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (reader.TryReadNil())
            {
                return(null);
            }

            options.Security.DepthStep(ref reader);
            global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
            var length            = reader.ReadArrayHeader();
            var __ParameterType__ = default(global::DFrame.AllowParameterType);
            var __IsNullable__    = default(bool);
            var __IsArray__       = default(bool);
            var __DefaultValue__  = default(object);
            var __ParameterName__ = default(string);
            var __EnumNames__     = default(string[]);
            var __EnumTypeName__  = default(string);

            for (int i = 0; i < length; i++)
            {
                switch (i)
                {
                case 0:
                    __ParameterType__ = formatterResolver.GetFormatterWithVerify <global::DFrame.AllowParameterType>().Deserialize(ref reader, options);
                    break;

                case 1:
                    __IsNullable__ = reader.ReadBoolean();
                    break;

                case 2:
                    __IsArray__ = reader.ReadBoolean();
                    break;

                case 3:
                    __DefaultValue__ = formatterResolver.GetFormatterWithVerify <object>().Deserialize(ref reader, options);
                    break;

                case 4:
                    __ParameterName__ = formatterResolver.GetFormatterWithVerify <string>().Deserialize(ref reader, options);
                    break;

                case 5:
                    __EnumNames__ = formatterResolver.GetFormatterWithVerify <string[]>().Deserialize(ref reader, options);
                    break;

                case 6:
                    __EnumTypeName__ = formatterResolver.GetFormatterWithVerify <string>().Deserialize(ref reader, options);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }

            var ____result = new global::DFrame.WorkloadParameterInfo(__ParameterType__, __IsNullable__, __IsArray__, __DefaultValue__, __ParameterName__, __EnumNames__, __EnumTypeName__);

            reader.Depth--;
            return(____result);
        }
        public global::MultiInitialData Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (reader.TryReadNil())
            {
                throw new global::System.InvalidOperationException("typecode is null, struct not supported");
            }

            options.Security.DepthStep(ref reader);
            global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
            var length     = reader.ReadArrayHeader();
            var ____result = new global::MultiInitialData();

            for (int i = 0; i < length; i++)
            {
                switch (i)
                {
                case 0:
                    ____result.T = reader.ReadInt32();
                    break;

                case 1:
                    ____result.sOI = formatterResolver.GetFormatterWithVerify <int[]>().Deserialize(ref reader, options);
                    break;

                case 2:
                    ____result.sOK = formatterResolver.GetFormatterWithVerify <int[]>().Deserialize(ref reader, options);
                    break;

                case 3:
                    ____result.gC = formatterResolver.GetFormatterWithVerify <int[]>().Deserialize(ref reader, options);
                    break;

                case 4:
                    ____result.gT = formatterResolver.GetFormatterWithVerify <int[]>().Deserialize(ref reader, options);
                    break;

                case 5:
                    ____result.gt = formatterResolver.GetFormatterWithVerify <int[]>().Deserialize(ref reader, options);
                    break;

                case 6:
                    ____result.gN = formatterResolver.GetFormatterWithVerify <string[]>().Deserialize(ref reader, options);
                    break;

                case 7:
                    ____result.sI = reader.ReadInt32();
                    break;

                case 8:
                    ____result.sOT = reader.ReadInt32();
                    break;

                case 9:
                    ____result.tN = reader.ReadInt32();
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }

            reader.Depth--;
            return(____result);
        }