您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
28 行
647 B
28 行
647 B
using System;
|
|
namespace UnityEditor.Graphing.Util
|
|
{
|
|
public struct ValueTuple<T1, T2>
|
|
{
|
|
public T1 Item1 { get; set; }
|
|
public T2 Item2 { get; set; }
|
|
|
|
public ValueTuple(T1 item1, T2 item2)
|
|
{
|
|
Item1 = item1;
|
|
Item2 = item2;
|
|
}
|
|
|
|
public static ValueTuple<T1, T2> Create(T1 item1, T2 item2)
|
|
{
|
|
return new ValueTuple<T1, T2>(item1, item2);
|
|
}
|
|
}
|
|
|
|
public static class ValueTuple
|
|
{
|
|
public static ValueTuple<T1, T2> Create<T1, T2>(T1 item1, T2 item2)
|
|
{
|
|
return new ValueTuple<T1, T2>(item1, item2);
|
|
}
|
|
}
|
|
}
|