Tuple.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // (c) Copyright Microsoft Corporation.
  2. // This source is subject to the Microsoft Public License (Ms-PL).
  3. // Please see http://go.microsoft.com/fwlink/?LinkID=131993] for details.
  4. // All other rights reserved.
  5. namespace System.Windows.Controls
  6. {
  7. /// <summary>
  8. /// A structure that groups two values.
  9. /// </summary>
  10. /// <typeparam name="T0">The type of the first value.</typeparam>
  11. /// <typeparam name="T1">The type of the second value.</typeparam>
  12. internal class Tuple<T0, T1>
  13. {
  14. /// <summary>
  15. /// Gets the first value.
  16. /// </summary>
  17. public T0 First { get; private set; }
  18. /// <summary>
  19. /// Gets the second value.
  20. /// </summary>
  21. public T1 Second { get; private set; }
  22. /// <summary>
  23. /// Initializes a new instance of the Tuple structure.
  24. /// </summary>
  25. /// <param name="first">The first value.</param>
  26. /// <param name="second">The second value.</param>
  27. public Tuple(T0 first, T1 second)
  28. {
  29. First = first;
  30. Second = second;
  31. }
  32. }
  33. }