예제 #1
0
        /// <summary>
        ///     Create an object using the contents of the corresponding MzIdentML object
        /// </summary>
        /// <param name="p"></param>
        /// <param name="idata"></param>
        public ParamObj(ParamType p, IdentDataObj idata)
            : base(idata)
        {
            _item = null;

            if (p.Item != null)
            {
                if (p.Item is CVParamType)
                {
                    _item = new CVParamObj(p.Item as CVParamType, IdentData);
                }
                else if (p.Item is UserParamType)
                {
                    _item = new UserParamObj(p.Item as UserParamType, IdentData);
                }
            }
        }
예제 #2
0
        /// <summary>
        /// Create an object using the contents of the corresponding MzIdentML object
        /// </summary>
        /// <param name="p"></param>
        /// <param name="idata"></param>
        public ParamObj(ParamType p, IdentDataObj idata)
            : base(idata)
        {
            _item = null;

            switch (p.Item)
            {
            case null:
                return;

            case CVParamType cvParam:
                _item = new CVParamObj(cvParam, IdentData);
                break;

            case UserParamType userParam:
                _item = new UserParamObj(userParam, IdentData);
                break;
            }
        }
예제 #3
0
 /// <summary>
 ///     Constructor
 /// </summary>
 public ParamObj()
 {
     _item = null;
 }