chr
2024-03-12 25dd2203bb3b995d73c43733b3aaa049ec28b4a9
Models/Variable.cs
@@ -4,55 +4,58 @@
using System.Security.Policy;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace WPFProject.Models
{
    public class Variable : NotifyBase
    {
      /// <summary>
      /// 参数名
      /// </summary>
      private string _Name;
      public string Name
      {
         get { return _Name; }
         set => RaiseAndSetIfChanged(ref _Name, value);
      }
        /// <summary>
        /// 参数名
        /// </summary>
        private string _Name;
        public string Name
        {
            get { return _Name; }
            set => RaiseAndSetIfChanged(ref _Name, value);
        }
      /// <summary>
      /// 参数类型
      /// </summary>
      private string _TypeName;
      public string TypeName
      {
         get { return _TypeName; }
         set {
            RaiseAndSetIfChanged(ref _TypeName, value);
            Type = value == null ? null : Type.GetType(value);
         }
      }
        /// <summary>
        /// 参数类型
        /// </summary>
        private string _TypeName;
        public string TypeName
        {
            get { return _TypeName; }
            set
            {
                RaiseAndSetIfChanged(ref _TypeName, value);
                Type = value == null ? null : Type.GetType(value);
            }
        }
      public Type Type { get; private set; }
        [XmlIgnore]
        public Type Type { get; private set; }
      /// <summary>
      /// 值字符
      /// </summary>
      private string _ValueStr;
      public string ValueStr
      {
         get { return _ValueStr; }
         set => RaiseAndSetIfChanged(ref _ValueStr, value);
      }
        /// <summary>
        /// 值字符
        /// </summary>
        private string _ValueStr;
        public string ValueStr
        {
            get { return _ValueStr; }
            set => RaiseAndSetIfChanged(ref _ValueStr, value);
        }
      /// <summary>
      /// 参数值
      /// </summary>
      private object _Value;
      public object Value
      {
         get { return _Value; }
         set { _Value = value; }
      }
        /// <summary>
        /// 参数值
        /// </summary>
        private object _Value;
        public object Value
        {
            get { return _Value; }
            set { _Value = value; }
        }
   }
    }
}