forked from dotnet/sourcelink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ValueTuple.cs
51 lines (42 loc) · 1.12 KB
/
ValueTuple.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the License.txt file in the project root for more information.
#if NET461
using System.Collections.Generic;
namespace System
{
internal struct ValueTuple<T1, T2>
{
public T1 Item1;
public T2 Item2;
public ValueTuple(T1 item1, T2 item2)
{
Item1 = item1;
Item2 = item2;
}
}
internal struct ValueTuple<T1, T2, T3>
{
public T1 Item1;
public T2 Item2;
public T3 Item3;
public ValueTuple(T1 item1, T2 item2, T3 item3)
{
Item1 = item1;
Item2 = item2;
Item3 = item3;
}
}
namespace Runtime.CompilerServices
{
internal sealed class TupleElementNamesAttribute : Attribute
{
public IList<string> TransformNames { get; }
public TupleElementNamesAttribute(string[] transformNames)
{
TransformNames = transformNames;
}
}
}
}
#endif