diff --git a/LinePutScript/Line.cs b/LinePutScript/Line.cs
index 618657b..4f99d52 100644
--- a/LinePutScript/Line.cs
+++ b/LinePutScript/Line.cs
@@ -100,9 +100,13 @@ public string Text
///
public StringStructure Texts
{
- get => new StringStructure((x) => text = x, () => text);
+ get
+ {
+ texts ??= new StringStructure((x) => text = x, () => text);
+ return texts;
+ }
}
-
+ StringStructure texts;
///
/// 注释 ///为注释
diff --git a/LinePutScript/Sub.cs b/LinePutScript/Sub.cs
index 4033dee..122decf 100644
--- a/LinePutScript/Sub.cs
+++ b/LinePutScript/Sub.cs
@@ -117,8 +117,13 @@ public string Info
///
public StringStructure Infos
{
- get => new StringStructure((x) => info = x, () => info);
+ get
+ {
+ infos ??= new StringStructure((x) => info = x, () => info);
+ return infos;
+ }
}
+ private StringStructure? infos;
///
/// 信息 (int)
@@ -215,7 +220,7 @@ public string[] GetInfos()
sts[i] = TextDeReplace(sts[i]);
return sts;
}
-
+
///
/// 将当前Sub转换成文本格式 (info已经被转义/去除关键字)
///
@@ -298,7 +303,7 @@ public static List Split(string text, string separator, int count = -1)
list.Add(lasttext);
return list;
}
-
+
///
/// 将文本进行反转义处理(成为正常显示的文本)
///
@@ -319,7 +324,7 @@ public static string TextDeReplace(string Reptex)
Reptex = Reptex.Replace("/|", "|");
return Reptex;
}
-
+
///
/// 将文本进行转义处理(成为去除关键字的文本)
///