public static void Serialize(Stream stream, PoolStateResponse instance)
 {
     if (instance.Info.get_Count() > 0)
     {
         using (List <ServerInfo> .Enumerator enumerator = instance.Info.GetEnumerator())
         {
             while (enumerator.MoveNext())
             {
                 ServerInfo current = enumerator.get_Current();
                 stream.WriteByte(10);
                 ProtocolParser.WriteUInt32(stream, current.GetSerializedSize());
                 ServerInfo.Serialize(stream, current);
             }
         }
     }
 }
        public uint GetSerializedSize()
        {
            uint num = 0u;

            if (this.Info.get_Count() > 0)
            {
                using (List <ServerInfo> .Enumerator enumerator = this.Info.GetEnumerator())
                {
                    while (enumerator.MoveNext())
                    {
                        ServerInfo current = enumerator.get_Current();
                        num += 1u;
                        uint serializedSize = current.GetSerializedSize();
                        num += serializedSize + ProtocolParser.SizeOfUInt32(serializedSize);
                    }
                }
            }
            return(num);
        }