TupleExtensions.cs 933 B

1234567891011121314151617181920212223242526
  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 set of tuple functions.
  9. /// </summary>
  10. internal static class Tuple
  11. {
  12. /// <summary>
  13. /// A method to create tuples.
  14. /// </summary>
  15. /// <typeparam name="T0">The type of the first item.</typeparam>
  16. /// <typeparam name="T1">The type of the second item.</typeparam>
  17. /// <param name="arg0">The type of the first argument.</param>
  18. /// <param name="arg1">The type of the second argument.</param>
  19. /// <returns>The tuple to return.</returns>
  20. public static Tuple<T0, T1> Create<T0, T1>(T0 arg0, T1 arg1)
  21. {
  22. return new Tuple<T0, T1>(arg0, arg1);
  23. }
  24. }
  25. }