public override void Deserialize(IDataReader reader)
        {
            uint num = (uint)reader.ReadUShort();

            for (int index = 0; (long)index < (long)num; ++index)
            {
                ServerSessionConstant instance = ProtocolTypeManager.GetInstance <ServerSessionConstant>((uint)reader.ReadUShort());
                instance.Deserialize(reader);
                this.variables.Add(instance);
            }
        }
Пример #2
0
        public override void Deserialize(ICustomDataInput reader)
        {
            int length = reader.ReadUShort();

            Variables = new List <ServerSessionConstant>();
            for (var i = 0; i < length; i++)
            {
                var objectToAdd = new ServerSessionConstant(reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                Variables.Add(objectToAdd);
            }
        }
Пример #3
0
        public override void Deserialize(IDataReader reader)
        {
            var VariablesCount = reader.ReadShort();

            Variables = new List <ServerSessionConstant>();
            for (var i = 0; i < VariablesCount; i++)
            {
                ServerSessionConstant objectToAdd = ProtocolTypeManager.GetInstance(reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                Variables.Add(objectToAdd);
            }
        }
        public override void Deserialize(ICustomDataInput reader)
        {
            var countVariables = reader.ReadShort();

            Variables = new List <ServerSessionConstant>();
            for (short i = 0; i < countVariables; i++)
            {
                var variablestypeId        = reader.ReadShort();
                ServerSessionConstant type = new ServerSessionConstant();
                type.Deserialize(reader);
                Variables.Add(type);
            }
        }