-
Notifications
You must be signed in to change notification settings - Fork 545
Expand file tree
/
Copy pathTupler.cs
More file actions
48 lines (44 loc) · 1.12 KB
/
Tupler.cs
File metadata and controls
48 lines (44 loc) · 1.12 KB
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
// "Therefore those skilled at the unorthodox
// are infinite as heaven and earth,
// inexhaustible as the great rivers.
// When they come to an end,
// they bagin again,
// like the days and months;
// they die and are reborn,
// like the four seasons."
//
// - Sun Tsu,
// "The Art of War"
namespace HtmlRenderer.Entities
{
/// <summary>
/// Used to hold two items
/// </summary>
internal struct Tupler<T1,T2>
{
public T1 Item1 { get; set; }
public T2 Item2 { get; set; }
public Tupler(T1 item1 = default(T1), T2 item2 = default(T2))
: this()
{
Item1 = item1;
Item2 = item2;
}
}
/// <summary>
/// Used to hold three items
/// </summary>
internal struct Tupler<T1, T2, T3>
{
public T1 Item1 { get; set; }
public T2 Item2 { get; set; }
public T3 Item3 { get; set; }
public Tupler(T1 item1 = default(T1), T2 item2 = default(T2), T3 item3 = default(T3))
: this()
{
Item1 = item1;
Item2 = item2;
Item3 = item3;
}
}
}