forked from nicogis/Geometric-Network-Utility-SOE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPair.cs
52 lines (48 loc) · 1.36 KB
/
Pair.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
52
//-----------------------------------------------------------------------
// <copyright file="Pair.cs" company="Studio A&T s.r.l.">
// Copyright (c) Studio A&T s.r.l. All rights reserved.
// </copyright>
// <author>Nicogis</author>
namespace Studioat.ArcGis.Soe.Rest
{
/// <summary>
/// class implement Pair
/// </summary>
/// <typeparam name="A">first type</typeparam>
/// <typeparam name="B">second type</typeparam>
internal class Pair<A, B> : IPair<A, B>
{
/// <summary>
/// The first value
/// </summary>
private readonly A first;
/// <summary>
/// The second value
/// </summary>
private readonly B second;
/// <summary>
/// Initializes a new instance of the Pair class
/// </summary>
/// <param name="first">The first value</param>
/// <param name="second">The second value</param>
public Pair(A first, B second)
{
this.first = first;
this.second = second;
}
/// <summary>
/// Gets first value
/// </summary>
A IPair<A, B>.First
{
get { return this.first; }
}
/// <summary>
/// Gets second value
/// </summary>
B IPair<A, B>.Second
{
get { return this.second; }
}
}
}