/// <summary> /// Create an object using the contents of the corresponding MzIdentML object /// </summary> /// <param name="pg"></param> /// <param name="idata"></param> public ParamGroupObj(IParamGroup pg, IdentDataObj idata) : base(pg, idata) { UserParams = new IdentDataList <UserParamObj>(1); if (pg.userParam?.Count > 0) { UserParams.AddRange(pg.userParam, up => new UserParamObj(up, IdentData)); } }
public static void CopyParamGroup(IParamGroup target, ParamGroupObj source) { CopyCVParamGroup(target, source); target.userParam = null; if (source.UserParams != null) { target.userParam = new List <UserParamType>(); foreach (var up in source.UserParams) { target.userParam.Add(new UserParamType(up)); } } }
/// <summary> /// Create an object using the contents of the corresponding MzIdentML object /// </summary> /// <param name="pg"></param> /// <param name="idata"></param> public ParamGroupObj(IParamGroup pg, IdentDataObj idata) : base(pg, idata) { _userParams = null; if (pg.userParam != null && pg.userParam.Count > 0) { UserParams = new IdentDataList <UserParamObj>(); foreach (var up in pg.userParam) { UserParams.Add(new UserParamObj(up, IdentData)); } } }