/// <summary>
        /// Create an object using the contents of the corresponding MzIdentML object
        /// </summary>
        /// <param name="el"></param>
        /// <param name="idata"></param>
        public EnzymeListObj(EnzymesType el, IdentDataObj idata)
            : base(idata)
        {
            _independent         = el.independent;
            IndependentSpecified = el.independentSpecified;

            Enzymes = new IdentDataList <EnzymeObj>(1);

            if (el.Enzyme?.Count > 0)
            {
                Enzymes.AddRange(el.Enzyme, e => new EnzymeObj(e, IdentData));
            }
        }
Esempio n. 2
0
        /// <summary>
        ///     Create an object using the contents of the corresponding MzIdentML object
        /// </summary>
        /// <param name="el"></param>
        /// <param name="idata"></param>
        public EnzymeListObj(EnzymesType el, IdentDataObj idata)
            : base(idata)
        {
            _independent         = el.independent;
            IndependentSpecified = el.independentSpecified;

            _enzymes = null;

            if ((el.Enzyme != null) && (el.Enzyme.Count > 0))
            {
                Enzymes = new IdentDataList <EnzymeObj>();
                foreach (var e in el.Enzyme)
                {
                    Enzymes.Add(new EnzymeObj(e, IdentData));
                }
            }
        }