mirror of
https://gitee.com/csharpui/CPF.git
synced 2025-04-05 17:37:51 +08:00
27 lines
413 B
C#
27 lines
413 B
C#
namespace CPF.Mac.CoreFoundation
|
|
{
|
|
internal static class Tuple
|
|
{
|
|
public static Tuple<T1, T2> Create<T1, T2>(T1 item1, T2 item2)
|
|
{
|
|
return new Tuple<T1, T2>(item1, item2);
|
|
}
|
|
}
|
|
internal class Tuple<T1, T2>
|
|
{
|
|
private T1 item1;
|
|
|
|
private T2 item2;
|
|
|
|
public T1 Item1 => item1;
|
|
|
|
public T2 Item2 => item2;
|
|
|
|
public Tuple(T1 item1, T2 item2)
|
|
{
|
|
this.item1 = item1;
|
|
this.item2 = item2;
|
|
}
|
|
}
|
|
}
|