using HMI.Core.Entity;
using System;
using System.Xml.Serialization;
namespace Plugin.TestBuilder.Model
{
public class Variable : NotifyBase
{
///
/// 参数名
///
private string _Name;
public string Name
{
get { return _Name; }
set => Set(ref _Name, value);
}
///
/// 参数类型
///
private string _TypeName;
public string TypeName
{
get { return _TypeName; }
set
{
Set(ref _TypeName, value);
Type = value == null ? null : Type.GetType(value);
}
}
[XmlIgnore]
public Type Type { get; private set; }
///
/// 值字符
///
private string _ValueStr;
public string ValueStr
{
get { return _ValueStr; }
set => Set(ref _ValueStr, value);
}
///
/// 参数值
///
private object _Value;
public object Value
{
get { return _Value; }
set { _Value = value; }
}
}
}