From 303e6180d4f3d88e0feafc9515cae3be8117d2e7 Mon Sep 17 00:00:00 2001
From: chr <chrry550@163.com>
Date: 星期四, 07 三月 2024 16:30:18 +0800
Subject: [PATCH] 添加不同平台的行尾文件;

---
 Models/Variable.cs |   85 ++++++++++++++++++++++--------------------
 1 files changed, 44 insertions(+), 41 deletions(-)

diff --git a/Models/Variable.cs b/Models/Variable.cs
index bb63f29..40d05c1 100644
--- a/Models/Variable.cs
+++ b/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; }
+        }
 
-	}
+    }
 }

--
Gitblit v1.9.1