// (c) Copyright Microsoft Corporation. // This source is subject to the Microsoft Public License (Ms-PL). // Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details. // All other rights reserved. namespace System.Windows.Controls.DataVisualization { /// <summary> /// Represents a 2-tuple, or pair. /// </summary> /// <typeparam name="T1">The type of the tuple's first component.</typeparam> /// <typeparam name="T2">The type of the tuple's second component.</typeparam> internal class Tuple<T1, T2> { /// <summary> /// Gets the value of the current Tuple(T1, T2) object's first component. /// </summary> public T1 Item1 { get; private set; } /// <summary> /// Gets the value of the current Tuple(T1, T2) object's second component. /// </summary> public T2 Item2 { get; private set; } /// <summary> /// Initializes a new instance of the Tuple(T1, T2) class. /// </summary> /// <param name="item1">The value of the tuple's first component.</param> /// <param name="item2">The value of the tuple's second component.</param> public Tuple(T1 item1, T2 item2) { Item1 = item1; Item2 = item2; } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)