using System;

namespace QC.QTMDotNetKernel.Handlers;

public class PropertyHandler
{
	private string descriptiveName = "";

	private string targetName = "";

	private string failString = "False";

	private bool createNewInstance;

	public string DescriptiveName => descriptiveName;

	public string TargetName => targetName;

	public string FailString => failString;

	public bool CreateNewInstance
	{
		get
		{
			return createNewInstance;
		}
		set
		{
			createNewInstance = value;
		}
	}

	public PropertyHandler(object objProperties)
	{
		try
		{
			object[] array = (object[])objProperties;
			descriptiveName = array[0].ToString();
			targetName = array[1].ToString();
			failString = array[2].ToString();
			createNewInstance = Convert.ToBoolean(array[3]);
		}
		catch
		{
		}
	}
}
