| | |
| | | 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) |
| | |
| | | } |
| | | 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; |