using System.Collections.Generic;
using System.Linq;

namespace QC.CTDS.DM.DataStructures.LimitDescriptorDataStructure;

public class LimitDescriptorCollection
{
	private List<LimitDefinition> limitDescCollection = new List<LimitDefinition>();

	public List<LimitDefinition> LimitDescriptors
	{
		get
		{
			return limitDescCollection;
		}
		set
		{
			limitDescCollection = value;
		}
	}

	public void GetLimitDescParamNames(out List<string> paramNames)
	{
		paramNames = new List<string>();
		foreach (LimitDefinition limitDescriptor in LimitDescriptors)
		{
			List<string> paramNames2 = new List<string>();
			limitDescriptor.GetLimitDescParamNames(out paramNames2);
			paramNames.AddRange(paramNames2);
		}
		paramNames = paramNames.Distinct().ToList();
	}
}
