| | |
| | | using System.ComponentModel; |
| | | using System.Net.Http.Headers; |
| | | |
| | | namespace YwUser.Web.SysApi.Areas.HelpPage |
| | | namespace IStation.WebApi.Areas.HelpPage |
| | | { |
| | | /// <summary> |
| | | /// This is used to identify the place where the sample should be applied. |
| | |
| | | /// Gets the parameter names. |
| | | /// </summary> |
| | | public HashSet<string> ParameterNames { get; private set; } |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | |
| | | public Type ParameterType { get; private set; } |
| | | |
| | | /// <summary> |
| | | /// Gets the <see cref="SampleDirection"/>. |
| | | /// </summary> |
| | | public SampleDirection? SampleDirection { get; private set; } |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /// <param name="obj"></param> |
| | | /// <returns></returns> |
| | | |
| | | public override bool Equals(object obj) |
| | | { |
| | | HelpPageSampleKey otherKey = obj as HelpPageSampleKey; |
| | |
| | | SampleDirection == otherKey.SampleDirection && |
| | | ParameterNames.SetEquals(otherKey.ParameterNames); |
| | | } |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | |
| | | public override int GetHashCode() |
| | | { |
| | | int hashCode = ControllerName.ToUpperInvariant().GetHashCode() ^ ActionName.ToUpperInvariant().GetHashCode(); |