3 // Copyright (c) Microsoft Corporation. All rights reserved.
6 // =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
10 // <OWNER>Microsoft</OWNER>
12 // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
14 namespace System.Linq.Parallel
17 /// A pair just wraps two bits of data into a single addressable unit. This is a
18 /// value type to ensure it remains very lightweight, since it is frequently used
19 /// with other primitive data types as well.
21 /// <typeparam name="T"></typeparam>
22 /// <typeparam name="U"></typeparam>
23 internal struct Pair<T, U>
26 // The first and second bits of data.
30 //-----------------------------------------------------------------------------------
31 // A simple constructor that initializes the first/second fields.
34 public Pair(T first, U second)
40 //-----------------------------------------------------------------------------------
41 // Accessors for the left and right data.
46 get { return m_first; }
47 set { m_first = value; }
52 get { return m_second; }
53 set { m_second = value; }