From e08f18c84c96ca794407f4fcb737b26fa76c0a1f Mon Sep 17 00:00:00 2001
From: tangxu <tangxu76880903>
Date: 星期二, 11 六月 2024 09:35:03 +0800
Subject: [PATCH] 改了配置类

---
 WebApi/Areas/HelpPage/SampleGeneration/TextSample.cs |   37 +++++++++++++++++++++++++++++++++++++
 1 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/WebApi/Areas/HelpPage/SampleGeneration/TextSample.cs b/WebApi/Areas/HelpPage/SampleGeneration/TextSample.cs
new file mode 100644
index 0000000..709ad97
--- /dev/null
+++ b/WebApi/Areas/HelpPage/SampleGeneration/TextSample.cs
@@ -0,0 +1,37 @@
+using System;
+
+namespace IStation.WebApi.Areas.HelpPage
+{
+    /// <summary>
+    /// This represents a preformatted text sample on the help page. There's a display template named TextSample associated with this class.
+    /// </summary>
+    public class TextSample
+    {
+        public TextSample(string text)
+        {
+            if (text == null)
+            {
+                throw new ArgumentNullException("text");
+            }
+            Text = text;
+        }
+
+        public string Text { get; private set; }
+
+        public override bool Equals(object obj)
+        {
+            TextSample other = obj as TextSample;
+            return other != null && Text == other.Text;
+        }
+
+        public override int GetHashCode()
+        {
+            return Text.GetHashCode();
+        }
+
+        public override string ToString()
+        {
+            return Text;
+        }
+    }
+}
\ No newline at end of file

--
Gitblit v1.9.3