SearchMarkState.cs 899 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace SuperSocket.Common
  6. {
  7. /// <summary>
  8. /// SearchMarkState
  9. /// </summary>
  10. /// <typeparam name="T"></typeparam>
  11. public class SearchMarkState<T>
  12. where T : IEquatable<T>
  13. {
  14. /// <summary>
  15. /// Initializes a new instance of the <see cref="SearchMarkState&lt;T&gt;"/> class.
  16. /// </summary>
  17. /// <param name="mark">The mark.</param>
  18. public SearchMarkState(T[] mark)
  19. {
  20. Mark = mark;
  21. }
  22. /// <summary>
  23. /// Gets the mark.
  24. /// </summary>
  25. public T[] Mark { get; private set; }
  26. /// <summary>
  27. /// Gets or sets whether matched already.
  28. /// </summary>
  29. /// <value>
  30. /// The matched.
  31. /// </value>
  32. public int Matched { get; set; }
  33. }
  34. }