tangxu
2024-06-11 e08f18c84c96ca794407f4fcb737b26fa76c0a1f
WebApi/Areas/HelpPage/SampleGeneration/TextSample.cs
@@ -1,16 +1,12 @@
using System;
namespace YwUser.Web.SysApi.Areas.HelpPage
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
    {
        /// <summary>
        ///
        /// </summary>
        /// <param name="text"></param>
        public TextSample(string text)
        {
            if (text == null)
@@ -19,32 +15,20 @@
            }
            Text = text;
        }
        /// <summary>
        ///
        /// </summary>
        public string Text { get; private set; }
        /// <summary>
        ///
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            TextSample other = obj as TextSample;
            return other != null && Text == other.Text;
        }
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            return Text.GetHashCode();
        }
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            return Text;