using System;

namespace QTMDataFormat;

public class ValueInfo
{
	private int occurance;

	private string parameterValue;

	public int Occurance
	{
		get
		{
			return occurance;
		}
		set
		{
			occurance = value;
		}
	}

	public string ParameterValue
	{
		get
		{
			return parameterValue;
		}
		set
		{
			parameterValue = value;
		}
	}

	public string GetFinalParametricValue()
	{
		if (Occurance > 1 && parameterValue.Contains("#$#"))
		{
			string[] array = parameterValue.Split(new string[1] { "#$#" }, StringSplitOptions.RemoveEmptyEntries);
			double num = 0.0;
			string[] array2 = array;
			foreach (string s in array2)
			{
				num += double.Parse(s);
			}
			return (num / (double)occurance).ToString();
		}
		return parameterValue;
	}
}
