Esempio n. 1
0
        /// <summary>
        /// Constructor for deserialization.
        /// </summary>
        /// <param name="info">Serialization Info.</param>
        /// <param name="context">Streaming context.</param>
        protected BlastSearchRecord(SerializationInfo info, StreamingContext context)
        {
            if (info == null)
            {
                throw new ArgumentNullException("info");
            }

            _hits                    = (IList <Hit>)info.GetValue("BlastSearchRecord:Hits", typeof(IList <Hit>));
            IterationNumber          = info.GetInt32("BlastSearchRecord:IterationNumber");
            IterationQueryId         = info.GetString("BlastSearchRecord:IterationQueryId");
            IterationQueryDefinition = info.GetString("BlastSearchRecord:IterationQueryDefinition");
            IterationQueryLength     = info.GetInt32("BlastSearchRecord:IterationQueryLength");
            IterationMessage         = info.GetString("BlastSearchRecord:IterationMessage");
            Statistics               = (BlastStatistics)info.GetValue("BlastSearchRecord:Statistics", typeof(BlastStatistics));
        }