diff --git a/Library.Core/NodeFlow/DynamicContext.cs b/Library.Core/NodeFlow/DynamicContext.cs index be81db1..ed74041 100644 --- a/Library.Core/NodeFlow/DynamicContext.cs +++ b/Library.Core/NodeFlow/DynamicContext.cs @@ -22,15 +22,29 @@ namespace Serein.Library.Core.NodeFlow public Task CreateTimingTask(Action action, int time = 100, int count = -1) { - NodeRunCts ??= SereinIoc.GetOrRegisterInstantiate(); - return Task.Factory.StartNew(async () => + if (NodeRunCts == null) { - for (int i = 0; i < count; i++) + NodeRunCts = SereinIoc.GetOrRegisterInstantiate(); + } + // 使用局部变量,避免捕获外部的 `action` + Action localAction = action; + + return Task.Run(async () => + { + for (int i = 0; i < count && !NodeRunCts.IsCancellationRequested; i++) { - NodeRunCts.Token.ThrowIfCancellationRequested(); await Task.Delay(time); - action.Invoke(); + if (NodeRunCts.IsCancellationRequested) { break; } + //if (FlowEnvironment.IsGlobalInterrupt) + //{ + // await FlowEnvironment.GetOrCreateGlobalInterruptAsync(); + //} + // 确保对局部变量的引用 + localAction?.Invoke(); } + + // 清理引用,避免闭包导致的内存泄漏 + localAction = null; }); } } diff --git a/Library.Framework/NodeFlow/DynamicContext.cs b/Library.Framework/NodeFlow/DynamicContext.cs index f245204..ff835b8 100644 --- a/Library.Framework/NodeFlow/DynamicContext.cs +++ b/Library.Framework/NodeFlow/DynamicContext.cs @@ -1,6 +1,7 @@ using Serein.Library.Api; using Serein.Library.Utils; using System; +using System.Security.Claims; using System.Threading.Tasks; namespace Serein.Library.Framework.NodeFlow @@ -17,9 +18,11 @@ namespace Serein.Library.Framework.NodeFlow SereinIoc = sereinIoc; FlowEnvironment = flowEnvironment; } + public NodeRunCts NodeRunCts { get; set; } public ISereinIOC SereinIoc { get; } public IFlowEnvironment FlowEnvironment { get; } + public Task CreateTimingTask(Action action, int time = 100, int count = -1) { if(NodeRunCts == null) @@ -31,11 +34,14 @@ namespace Serein.Library.Framework.NodeFlow return Task.Run(async () => { - for (int i = 0; i < count; i++) + for (int i = 0; i < count && !NodeRunCts.IsCancellationRequested; i++) { - NodeRunCts.Token.ThrowIfCancellationRequested(); await Task.Delay(time); - + if (NodeRunCts.IsCancellationRequested) { break; } + //if (FlowEnvironment.IsGlobalInterrupt) + //{ + // await FlowEnvironment.GetOrCreateGlobalInterruptAsync(); + //} // 确保对局部变量的引用 localAction?.Invoke(); } diff --git a/Library.Framework/Serein.Library.Framework.csproj b/Library.Framework/Serein.Library.Framework.csproj index 9c4327c..5332cb5 100644 --- a/Library.Framework/Serein.Library.Framework.csproj +++ b/Library.Framework/Serein.Library.Framework.csproj @@ -37,6 +37,9 @@ + + ..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll + diff --git a/Library.Framework/packages.config b/Library.Framework/packages.config index d04b6cf..284ce17 100644 --- a/Library.Framework/packages.config +++ b/Library.Framework/packages.config @@ -1,4 +1,5 @@  + \ No newline at end of file diff --git a/Library/Api/IFlowEnvironment.cs b/Library/Api/IFlowEnvironment.cs index c98293f..48d5b47 100644 --- a/Library/Api/IFlowEnvironment.cs +++ b/Library/Api/IFlowEnvironment.cs @@ -5,6 +5,7 @@ using System; using System.Collections.Generic; using System.Reflection; using System.Threading.Tasks; +using static Serein.Library.Utils.ChannelFlowInterrupt; namespace Serein.Library.Api { @@ -226,7 +227,7 @@ namespace Serein.Library.Api /// 节点触发中断事件 /// /// - public delegate void NodeInterruptTriggerHandler(NodeInterruptTriggerEventArgs eventArgs); + public delegate void ExpInterruptTriggerHandler(InterruptTriggerEventArgs eventArgs); /// /// 监视的节点数据发生变化 @@ -270,23 +271,54 @@ namespace Serein.Library.Api /// /// 节点触发了中断事件参数 /// - public class NodeInterruptTriggerEventArgs : FlowEventArgs + public class InterruptTriggerEventArgs : FlowEventArgs { - public NodeInterruptTriggerEventArgs(string nodeGuid) + public enum InterruptTriggerType { - NodeGuid = nodeGuid; + /// + /// 主动监视中断 + /// + Monitor, + /// + /// 表达式中断 + /// + Exp, + } + + public InterruptTriggerEventArgs(string nodeGuid, string expression, InterruptTriggerType type) + { + this.NodeGuid = nodeGuid; + this.Expression = expression; + this.Type = type; } /// /// 中断的节点Guid /// public string NodeGuid { get; protected set; } + public string Expression { get; protected set; } + public InterruptTriggerType Type { get; protected set; } } public interface IFlowEnvironment { - ChannelFlowInterrupt ChannelFlowInterrupt { get; set; } + /// + /// 环境名称 + /// + string EnvName {get;} + /// + /// 是否全局中断 + /// + bool IsGlobalInterrupt { get; } + /// + /// 设置中断时的中断级别 + /// + //InterruptClass EnvInterruptClass { get; set; } + /// + /// 调试管理 + /// + //ChannelFlowInterrupt ChannelFlowInterrupt { get; set; } /// /// 加载Dll @@ -334,9 +366,9 @@ namespace Serein.Library.Api event NodeInterruptStateChangeHandler OnNodeInterruptStateChange; /// - /// 节点触发中断 + /// 触发中断 /// - event NodeInterruptTriggerHandler OnNodeInterruptTrigger; + event ExpInterruptTriggerHandler OnInterruptTrigger; /// @@ -417,21 +449,51 @@ namespace Serein.Library.Api /// 被中断的节点Guid /// 新的中断级别 /// - bool NodeInterruptChange(string nodeGuid,InterruptClass interruptClass); + bool SetNodeInterrupt(string nodeGuid, InterruptClass interruptClass); + + /// + /// 添加中断表达式 + /// + /// + /// + /// + bool AddInterruptExpression(string nodeGuid,string expression); /// - /// /// /// 设置节点数据监视状态 /// /// 需要监视的节点Guid /// 是否监视 void SetNodeFLowDataMonitorState(string nodeGuid, bool isMonitor); + + + + /// - /// 节点数据更新通知 + /// 流程启动器调用,节点数据更新通知 /// - /// - void FlowDataUpdateNotification(string nodeGuid, object flowData); + /// 更新了数据的节点Guid + /// 更新的数据 + void FlowDataNotification(string nodeGuid, object flowData); + + /// + /// 流程启动器调用,节点触发了中断 + /// + /// 被中断的节点Guid + /// 被触发的表达式 + /// 中断类型。0主动监视,1表达式 + void TriggerInterrupt(string nodeGuid,string expression, InterruptTriggerEventArgs.InterruptTriggerType type); + + /// + /// 全局中断 + /// + /// + /// + /// + Task GetOrCreateGlobalInterruptAsync(); + + } } diff --git a/Library/Entity/NodeDebugSetting.cs b/Library/Entity/NodeDebugSetting.cs index 9008fb7..de5bed9 100644 --- a/Library/Entity/NodeDebugSetting.cs +++ b/Library/Entity/NodeDebugSetting.cs @@ -1,6 +1,8 @@ using System; using System.Collections.Generic; using System.Text; +using System.Threading.Tasks; +using static Serein.Library.Utils.ChannelFlowInterrupt; namespace Serein.Library.Entity { @@ -21,8 +23,21 @@ namespace Serein.Library.Entity /// public InterruptClass InterruptClass { get; set; } = InterruptClass.None; + /// + /// 中断表达式 + /// + public List InterruptExpressions { get; } = new List(); - public List InterruptExpression { get; } = new List(); + + /// + /// 取消中断的回调函数 + /// + public Action CancelInterruptCallback { get; set; } + + /// + /// 中断Task + /// + public Func> GetInterruptTask { get; set; } } /// @@ -41,7 +56,7 @@ namespace Serein.Library.Entity /// /// 分组中断,中断进入指定节点分组的分支。(暂未实现相关) /// - Group, + // Group, /// /// 全局中断,中断全局所有节点的运行。(暂未实现相关) /// diff --git a/Library/Utils/ChannelFlowInterrupt.cs b/Library/Utils/ChannelFlowInterrupt.cs index 22ced6c..c8e1402 100644 --- a/Library/Utils/ChannelFlowInterrupt.cs +++ b/Library/Utils/ChannelFlowInterrupt.cs @@ -1,4 +1,5 @@ -using System; +#region plan 2 +using System; using System.Collections.Concurrent; using System.Threading; using System.Threading.Channels; @@ -6,125 +7,351 @@ using System.Threading.Tasks; namespace Serein.Library.Utils { - public class ChannelFlowInterrupt +/// +/// 流程中断管理 +/// +public class ChannelFlowInterrupt +{ + + + +/// +/// 中断取消类型 +/// +public enum CancelType +{ + Manual, + Error, + Overtime +} + +// 使用并发字典管理每个信号对应的 Channel +private readonly ConcurrentDictionary> _channels = new ConcurrentDictionary>(); + +/// +/// 创建信号并指定超时时间,到期后自动触发(异步方法) +/// +/// 信号标识符 +/// 超时时间 +/// 等待任务 +public async Task GetCreateChannelWithTimeoutAsync(string signal, TimeSpan outTime) +{ + var channel = GetOrCreateChannel(signal); + var cts = new CancellationTokenSource(); + + // 异步任务:超时后自动触发信号 + _ = Task.Run(async () => { - /// - /// 中断取消类型 - /// - public enum CancelType + try { - Manual, - Overtime - } - - // 使用并发字典管理每个信号对应的 Channel - private readonly ConcurrentDictionary> _channels = new ConcurrentDictionary>(); - - /// - /// 创建信号并指定超时时间,到期后自动触发(异步方法) - /// - /// 信号标识符 - /// 超时时间 - /// 等待任务 - public async Task CreateChannelWithTimeoutAsync(string signal, TimeSpan outTime) - { - var channel = GetOrCreateChannel(signal); - var cts = new CancellationTokenSource(); - - // 异步任务:超时后自动触发信号 - _ = Task.Run(async () => + await Task.Delay(outTime, cts.Token); + if (!cts.Token.IsCancellationRequested) { - try - { - await Task.Delay(outTime, cts.Token); - if(!cts.Token.IsCancellationRequested) - { - await channel.Writer.WriteAsync(CancelType.Overtime); - } - - } - catch (OperationCanceledException) - { - // 超时任务被取消 - } - finally - { - cts?.Dispose(); - } - }, cts.Token); - - // 等待信号传入(超时或手动触发) - var result = await channel.Reader.ReadAsync(); - return result; - } - - /// - /// 创建信号并指定超时时间,到期后自动触发(同步阻塞方法) - /// - /// 信号标识符 - /// 超时时间 - public CancelType CreateChannelWithTimeoutSync(string signal, TimeSpan timeout) - { - var channel = GetOrCreateChannel(signal); - var cts = new CancellationTokenSource(); - CancellationToken token = cts.Token; - - // 异步任务:超时后自动触发信号 - _ = Task.Run(async () => - { - try - { - await Task.Delay(timeout, token); - await channel.Writer.WriteAsync(CancelType.Overtime); - } - catch (OperationCanceledException) - { - // 任务被取消 - } - }); - - // 同步阻塞直到信号触发或超时 - var result = channel.Reader.ReadAsync().AsTask().GetAwaiter().GetResult(); - return result; - } - - /// - /// 触发信号 - /// - /// 信号字符串 - /// 是否成功触发 - public bool TriggerSignal(string signal) - { - if (_channels.TryGetValue(signal, out var channel)) - { - // 手动触发信号 - channel.Writer.TryWrite(CancelType.Manual); - return true; + await channel.Writer.WriteAsync(CancelType.Overtime); } - return false; } - - /// - /// 取消所有任务 - /// - public void CancelAllTasks() + catch (OperationCanceledException) { - foreach (var channel in _channels.Values) - { - channel.Writer.Complete(); - } - _channels.Clear(); + // 超时任务被取消 } - - /// - /// 获取或创建指定信号的 Channel - /// - /// 信号字符串 - /// 对应的 Channel - private Channel GetOrCreateChannel(string signal) + finally { - return _channels.GetOrAdd(signal, _ => Channel.CreateUnbounded()); + cts?.Dispose(); } + }, cts.Token); + + // 等待信号传入(超时或手动触发) + try + { + var result = await channel.Reader.ReadAsync(); + return result; + } + catch + { + return CancelType.Error; + } + +} + + +/// +/// 创建信号,直到手动触发(异步方法) +/// +/// 信号标识符 +/// 超时时间 +/// 等待任务 +public async Task GetOrCreateChannelAsync(string signal) +{ + try + { + var channel = GetOrCreateChannel(signal); + // 等待信号传入(超时或手动触发) + var result = await channel.Reader.ReadAsync(); + return result; + } + catch + { + return CancelType.Manual; } } +/// +/// 创建信号并指定超时时间,到期后自动触发(同步阻塞方法) +/// +/// 信号标识符 +/// 超时时间 +public CancelType CreateChannelWithTimeoutSync(string signal, TimeSpan timeout) +{ + var channel = GetOrCreateChannel(signal); + var cts = new CancellationTokenSource(); + CancellationToken token = cts.Token; + + // 异步任务:超时后自动触发信号 + _ = Task.Run(async () => + { + try + { + await Task.Delay(timeout, token); + await channel.Writer.WriteAsync(CancelType.Overtime); + } + catch (OperationCanceledException ex) + { + // 任务被取消 + await Console.Out.WriteLineAsync(ex.Message); + } + }); + + // 同步阻塞直到信号触发或超时 + var result = channel.Reader.ReadAsync().AsTask().GetAwaiter().GetResult(); + return result; + +} + +/// +/// 触发信号 +/// +/// 信号字符串 +/// 是否成功触发 +public bool TriggerSignal(string signal) +{ + //if (_channels.TryGetValue(signal, out var channel)) + //{ + // // 手动触发信号 + // channel.Writer.TryWrite(CancelType.Manual); + // return true; + //} + //return false; + + + try + { + if (_channels.TryGetValue(signal, out var channel)) + { + // 手动触发信号 + channel.Writer.TryWrite(CancelType.Manual); + + // 完成写入,标记该信号通道不再接受新写入 + channel.Writer.Complete(); + + // 触发后移除信号 + _channels.TryRemove(signal, out _); + + return true; + } + return false; + } + catch + { + + return false; + } + +} + +/// +/// 取消所有任务 +/// +public void CancelAllTasks() +{ + foreach (var channel in _channels.Values) + { + try + { + channel.Writer.Complete(); + } + finally + { + + } + } + _channels.Clear(); +} + +/// +/// 获取或创建指定信号的 Channel +/// +/// 信号字符串 +/// 对应的 Channel +private Channel GetOrCreateChannel(string signal) +{ + return _channels.GetOrAdd(signal, _ => Channel.CreateUnbounded()); +} +} +} + +#endregion + +#region plan 3 + +//using System; +//using System.Collections.Concurrent; +//using System.Threading; +//using System.Threading.Channels; +//using System.Threading.Tasks; + +//namespace Serein.Library.Utils +//{ +// /// +// /// 流程中断管理类,提供了基于 Channel 的异步中断机制 +// /// +// public class ChannelFlowInterrupt +// { +// /// +// /// 中断取消类型 +// /// +// public enum CancelType +// { +// Manual, // 手动触发 +// Overtime, // 超时触发 +// Discard // 丢弃触发 +// } + +// // 使用并发字典管理每个信号对应的 Channel 和状态 +// private readonly ConcurrentDictionary Channel, bool IsCancelled, bool IsDiscardMode)> _channels +// = new ConcurrentDictionary, bool, bool)>(); + +// // 锁对象,用于保护并发访问 +// private readonly object _lock = new object(); + +// /// +// /// 创建带有超时功能的信号,超时后自动触发 +// /// +// public async Task GetCreateChannelWithTimeoutAsync(string signal, TimeSpan outTime) +// { +// var (channel, isCancelled, isDiscardMode) = GetOrCreateChannel(signal); + +// // 如果信号已取消或在丢弃模式下,立即返回丢弃类型 +// if (isCancelled || isDiscardMode) return CancelType.Discard; + +// var cts = new CancellationTokenSource(); + +// _ = Task.Run(async () => +// { +// try +// { +// await Task.Delay(outTime, cts.Token); +// if (!cts.Token.IsCancellationRequested && !isCancelled) +// { +// await channel.Writer.WriteAsync(CancelType.Overtime); +// } +// } +// catch (OperationCanceledException) +// { +// // 处理任务取消的情况 +// } +// finally +// { +// cts.Dispose(); +// } +// }, cts.Token); + +// return await channel.Reader.ReadAsync(); +// } + +// /// +// /// 创建或获取现有信号,等待手动触发 +// /// +// public async Task GetOrCreateChannelAsync(string signal) +// { +// var (channel, isCancelled, isDiscardMode) = GetOrCreateChannel(signal); + +// // 如果信号已取消或在丢弃模式下,立即返回丢弃类型 +// if (isCancelled || isDiscardMode) return CancelType.Discard; + +// return await channel.Reader.ReadAsync(); +// } + +// /// +// /// 触发信号并将其移除 +// /// +// public bool TriggerSignal(string signal) +// { +// lock (_lock) +// { +// if (_channels.TryGetValue(signal, out var channelInfo)) +// { +// var (channel, isCancelled, isDiscardMode) = channelInfo; + +// // 如果信号未被取消,则触发并标记为已取消 +// if (!isCancelled) +// { +// channel.Writer.TryWrite(CancelType.Manual); +// _channels[signal] = (channel, true, false); // 标记为已取消 +// _channels.TryRemove(signal, out _); // 从字典中移除信号 +// return true; +// } +// } +// } +// return false; +// } + +// /// +// /// 启用丢弃模式,所有后续获取的信号将直接返回丢弃类型 +// /// +// /// 信号标识符 +// public void EnableDiscardMode(string signal,bool state = true) +// { +// lock (_lock) +// { +// if (_channels.TryGetValue(signal, out var channelInfo)) +// { +// var (channel, isCancelled, _) = channelInfo; +// _channels[signal] = (channel, isCancelled, state); // 标记为丢弃模式 +// } +// } +// } + +// /// +// /// 取消所有任务 +// /// +// public void CancelAllTasks() +// { +// foreach (var (channel, _, _) in _channels.Values) +// { +// try +// { +// channel.Writer.Complete(); +// } +// catch +// { +// // 忽略完成时的异常 +// } +// } +// _channels.Clear(); +// } + +// /// +// /// 获取或创建指定信号的 Channel 通道 +// /// +// private (Channel, bool, bool) GetOrCreateChannel(string signal) +// { +// lock (_lock) +// { +// return _channels.GetOrAdd(signal, _ => (Channel.CreateUnbounded(), false, false)); +// } +// } +// } +//} + + +#endregion \ No newline at end of file diff --git a/Library/Web/Attribute.cs b/Library/Web/Attribute.cs index 129affb..c7a817b 100644 --- a/Library/Web/Attribute.cs +++ b/Library/Web/Attribute.cs @@ -68,7 +68,7 @@ namespace Serein.Library.Web /// /// /// - public WebApiAttribute(API http = API.POST, bool isUrl = false, string url = "") + public WebApiAttribute(API http = API.POST, bool isUrl = true, string url = "") { Http = http; Url = url; diff --git a/NodeFlow/Base/NodeModelBaseData.cs b/NodeFlow/Base/NodeModelBaseData.cs index 06ef4ad..7880547 100644 --- a/NodeFlow/Base/NodeModelBaseData.cs +++ b/NodeFlow/Base/NodeModelBaseData.cs @@ -78,10 +78,42 @@ namespace Serein.NodeFlow.Base /// public Exception RuningException { get; set; } = null; + /// - /// 当前传递数据(执行了节点对应的方法,才会存在值) + /// 控制FlowData在同一时间只会被同一个线程更改。 /// - protected object? FlowData { get; set; } = null; + private readonly ReaderWriterLockSlim _flowDataLock = new ReaderWriterLockSlim(); + private object? _flowData; + /// + /// 当前传递数据(执行了节点对应的方法,才会存在值)。 + /// + protected object? FlowData + { + get + { + _flowDataLock.EnterReadLock(); + try + { + return _flowData; + } + finally + { + _flowDataLock.ExitReadLock(); + } + } + set + { + _flowDataLock.EnterWriteLock(); + try + { + _flowData = value; + } + finally + { + _flowDataLock.ExitWriteLock(); + } + } + } } diff --git a/NodeFlow/Base/NodeModelBaseFunc.cs b/NodeFlow/Base/NodeModelBaseFunc.cs index 06f4035..09bcb23 100644 --- a/NodeFlow/Base/NodeModelBaseFunc.cs +++ b/NodeFlow/Base/NodeModelBaseFunc.cs @@ -27,15 +27,6 @@ namespace Serein.NodeFlow.Base #region 调试中断 - public Action? CancelInterruptCallback; - - /// - /// 中断节点 - /// - public void Interrupt() - { - this.DebugSetting.InterruptClass = InterruptClass.Branch; - } /// /// 不再中断 @@ -43,9 +34,9 @@ namespace Serein.NodeFlow.Base public void CancelInterrupt() { this.DebugSetting.InterruptClass = InterruptClass.None; - CancelInterruptCallback?.Invoke(); - CancelInterruptCallback = null; + DebugSetting.CancelInterruptCallback?.Invoke(); } + #endregion #region 导出/导入项目文件节点信息 @@ -105,12 +96,13 @@ namespace Serein.NodeFlow.Base /// public async Task StartExecute(IDynamicContext context) { - Stack stack = new Stack(); stack.Push(this); var cts = context.SereinIoc.Get(FlowStarter.FlipFlopCtsName); while (stack.Count > 0 && !cts.IsCancellationRequested) // 循环中直到栈为空才会退出循环 { + // 节点执行异常时跳过执行 + // 从栈中弹出一个节点作为当前节点进行处理 var currentNode = stack.Pop(); @@ -126,45 +118,57 @@ namespace Serein.NodeFlow.Base var upstreamNodes = currentNode.SuccessorNodes[ConnectionType.Upstream]; for (int i = upstreamNodes.Count - 1; i >= 0; i--) { - if (upstreamNodes[i].DebugSetting.IsEnable) // 排除未启用的上游节点 + // 筛选出启用的节点 + if (upstreamNodes[i].DebugSetting.IsEnable) { + if (upstreamNodes[i].DebugSetting.InterruptClass != InterruptClass.None) // 执行触发前 + { + var cancelType = await upstreamNodes[i].DebugSetting.GetInterruptTask(); + await Console.Out.WriteLineAsync($"[{upstreamNodes[i].MethodDetails.MethodName}]中断已{cancelType},开始执行后继分支"); + } upstreamNodes[i].PreviousNode = currentNode; - var upNewFlowData = await upstreamNodes[i].ExecutingAsync(context); // 执行流程节点的上游分支 - await FlowRefreshDataOrInterrupt(context, upstreamNodes[i], upNewFlowData); // 执行上游分支后刷新上游节点数据 + await upstreamNodes[i].StartExecute(context); // 执行流程节点的上游分支 } } + // 执行当前节点 - var newFlowData = await currentNode.ExecutingAsync(context); - await FlowRefreshDataOrInterrupt(context, currentNode, newFlowData); // 执行当前节点后刷新数据 - #endregion - - - #region 执行完成 + object? newFlowData = await currentNode.ExecutingAsync(context); if (cts == null || cts.IsCancellationRequested || currentNode.NextOrientation == ConnectionType.None) { // 不再执行 break; } + await RefreshFlowDataAndExpInterrupt(context, currentNode, newFlowData); // 执行当前节点后刷新数据 + #endregion + #region 执行完成 + // 选择后继分支 var nextNodes = currentNode.SuccessorNodes[currentNode.NextOrientation]; // 将下一个节点集合中的所有节点逆序推入栈中 for (int i = nextNodes.Count - 1; i >= 0; i--) { - // 排除未启用的节点 - if (nextNodes[i].DebugSetting.IsEnable) + // 筛选出启用的节点、未被中断的节点 + if (nextNodes[i].DebugSetting.IsEnable /*&& nextNodes[i].DebugSetting.InterruptClass == InterruptClass.None*/) { + if (nextNodes[i].DebugSetting.InterruptClass != InterruptClass.None) // 执行触发前 + { + var cancelType = await nextNodes[i].DebugSetting.GetInterruptTask(); + await Console.Out.WriteLineAsync($"[{nextNodes[i].MethodDetails.MethodName}]中断已{cancelType},开始执行后继分支"); + } nextNodes[i].PreviousNode = currentNode; stack.Push(nextNodes[i]); } } #endregion + } } + /// /// 执行节点对应的方法 /// @@ -173,12 +177,16 @@ namespace Serein.NodeFlow.Base public virtual async Task ExecutingAsync(IDynamicContext context) { #region 调试中断 - if (DebugSetting.InterruptClass != InterruptClass.None && TryCreateInterruptTask(context, this, out Task? task)) // 执行节点前检查中断 + + if (DebugSetting.InterruptClass != InterruptClass.None) // 执行触发前 { - string guid = this.Guid.ToString(); - this.CancelInterruptCallback ??= () => context.FlowEnvironment.ChannelFlowInterrupt.TriggerSignal(guid); - var cancelType = await task!; - await Console.Out.WriteLineAsync($"[{this.MethodDetails.MethodName}]中断已{(cancelType == CancelType.Manual ? "手动取消" : "自动取消")},开始执行后继分支"); + var cancelType = await this.DebugSetting.GetInterruptTask(); + //if(cancelType == CancelType.Discard) + //{ + // this.NextOrientation = ConnectionType.None; + // return null; + //} + await Console.Out.WriteLineAsync($"[{this.MethodDetails.MethodName}]中断已{cancelType},开始执行后继分支"); } #endregion @@ -192,7 +200,7 @@ namespace Serein.NodeFlow.Base try { // Action/Func([方法作用的实例],[可能的参数值],[可能的返回值]) - object?[]? parameters = GetParameters(context,this, md); + object?[]? parameters = GetParameters(context, this, md); object? result = (haveParameter, haveResult) switch { (false, false) => Execution((Action)del, instance), // 调用节点方法,返回null @@ -213,7 +221,6 @@ namespace Serein.NodeFlow.Base } - #region 节点转换的委托类型 public static object? Execution(Action del, object instance) { @@ -326,64 +333,50 @@ namespace Serein.NodeFlow.Base /// 更新节点数据,并检查监视表达式 /// /// - public static async Task FlowRefreshDataOrInterrupt(IDynamicContext context , NodeModelBase nodeModel, object? newData = null) + public static async Task RefreshFlowDataAndExpInterrupt(IDynamicContext context, NodeModelBase nodeModel, object? newData = null) { string guid = nodeModel.Guid; - if (newData is not null) + // 检查是否存在监视表达式 + if (newData is not null && nodeModel.DebugSetting.InterruptExpressions.Count > 0) { - // 判断是否存在表达式 - bool isInterrupt = false; - // 判断监视表达式 - for (int i = 0; i < nodeModel.DebugSetting.InterruptExpression.Count && !isInterrupt; i++) + // 表达式环境下判断是否需要执行中断 + bool isExpInterrupt = false; + string? exp = ""; + // 判断执行监视表达式,直到为 true 时退出 + for (int i = 0; i < nodeModel.DebugSetting.InterruptExpressions.Count && !isExpInterrupt; i++) { - string? exp = nodeModel.DebugSetting.InterruptExpression[i]; - isInterrupt = SereinConditionParser.To(newData, exp); + exp = nodeModel.DebugSetting.InterruptExpressions[i]; + isExpInterrupt = SereinConditionParser.To(newData, exp); } - if (isInterrupt) // 触发中断 + + if (isExpInterrupt) // 触发中断 { - nodeModel.Interrupt(); - if(TryCreateInterruptTask(context, nodeModel, out Task? task)) + InterruptClass interruptClass = InterruptClass.Branch; // 分支中断 + if (context.FlowEnvironment.SetNodeInterrupt(nodeModel.Guid, interruptClass)) { - - nodeModel.CancelInterruptCallback ??= () => context.FlowEnvironment.ChannelFlowInterrupt.TriggerSignal(guid); - var cancelType = await task!; - await Console.Out.WriteLineAsync($"[{nodeModel.MethodDetails.MethodName}]中断已{(cancelType == CancelType.Manual ? "手动取消" : "自动取消")},开始执行后继分支"); + context.FlowEnvironment.TriggerInterrupt(guid, exp, InterruptTriggerEventArgs.InterruptTriggerType.Exp); + var cancelType = await nodeModel.DebugSetting.GetInterruptTask(); + await Console.Out.WriteLineAsync($"[{nodeModel.MethodDetails.MethodName}]中断已{cancelType},开始执行后继分支"); } + } } - nodeModel.FlowData = newData; - // 节点是否监视了数据,如果是,调用环境接口触发其相关事件。 + //else if (nodeModel.DebugSetting.InterruptClass != InterruptClass.None) + //{ + // var cancelType = await nodeModel.DebugSetting.InterruptTask; + // await Console.Out.WriteLineAsync($"[{nodeModel.MethodDetails.MethodName}]中断已{(cancelType == CancelType.Manual ? "手动取消" : "自动取消")},开始执行后继分支"); + //} + + nodeModel.FlowData = newData; // 替换数据 + // 节点是否监视了数据,如果是,调用环境接口触发其相关事件。 if (nodeModel.DebugSetting.IsMonitorFlowData) { - context.FlowEnvironment.FlowDataUpdateNotification(guid, newData); + context.FlowEnvironment.FlowDataNotification(guid, newData); + } + } - public static bool TryCreateInterruptTask(IDynamicContext context, NodeModelBase currentNode, out Task? task) - { - bool haveTask; - Console.WriteLine($"[{currentNode.MethodDetails.MethodName}]在当前分支中断"); - - if (currentNode.DebugSetting.InterruptClass == InterruptClass.None) - { - haveTask = false; - task = null; - } - else if (currentNode.DebugSetting.InterruptClass == InterruptClass.Branch) // 中断当前分支 - { - haveTask = true; - task = context.FlowEnvironment.ChannelFlowInterrupt.CreateChannelWithTimeoutAsync(currentNode.Guid, TimeSpan.FromSeconds(60 * 30)); // 中断30分钟 - } - else - { - haveTask = false; - task = null; - } - - return haveTask; - } - - /// /// 释放对象 /// @@ -402,7 +395,7 @@ namespace Serein.NodeFlow.Base /// public object? GetFlowData() { - return this.FlowData ; + return this.FlowData; } #endregion diff --git a/NodeFlow/FlowEnvironment.cs b/NodeFlow/FlowEnvironment.cs index 5871b63..2bfae7d 100644 --- a/NodeFlow/FlowEnvironment.cs +++ b/NodeFlow/FlowEnvironment.cs @@ -11,6 +11,7 @@ using Serein.NodeFlow.Tool; using System.Collections.Concurrent; using System.Reflection; using System.Xml.Linq; +using static Serein.Library.Utils.ChannelFlowInterrupt; using static Serein.NodeFlow.FlowStarter; namespace Serein.NodeFlow @@ -57,7 +58,7 @@ namespace Serein.NodeFlow /// /// 节点的命名空间 /// - public const string NodeSpaceName = $"{nameof(Serein)}.{nameof(Serein.NodeFlow)}.{nameof(Serein.NodeFlow.Model)}"; + public const string SpaceName = $"{nameof(Serein)}.{nameof(Serein.NodeFlow)}.{nameof(Serein.NodeFlow.Model)}"; #region 环境接口事件 /// @@ -108,20 +109,25 @@ namespace Serein.NodeFlow /// /// 节点触发了中断 /// - public event NodeInterruptTriggerHandler OnNodeInterruptTrigger; + public event ExpInterruptTriggerHandler OnInterruptTrigger; #endregion + /// + /// 环境名称 + /// + public string EnvName { get; set; } = SpaceName; + + /// + /// 是否全局中断 + /// + public bool IsGlobalInterrupt { get; set; } /// /// 流程中断器 /// public ChannelFlowInterrupt ChannelFlowInterrupt { get; set; } - /// - /// 是否全局中断 - /// - public bool IsGlobalInterrupt { get; set; } /// /// 存储加载的程序集路径 @@ -198,15 +204,6 @@ namespace Serein.NodeFlow await flowStarter.RunAsync(this, nodes, initMethods, loadingMethods, exitMethods); - - //await flowStarter.RunAsync(StartNode, - // this, - // runMethodDetailess, - // initMethods, - // loadingMethods, - // exitMethods, - // flipflopNodes); - if(flowStarter?.FlipFlopState == RunState.NoStart) { this.Exit(); // 未运行触发器时,才会调用结束方法 @@ -466,7 +463,8 @@ namespace Serein.NodeFlow /// public void RemoteNode(string nodeGuid) { - NodeModelBase remoteNode = GuidToModel(nodeGuid); + var remoteNode = GuidToModel(nodeGuid); + if (remoteNode is null) return; if (remoteNode.IsStart) { return; @@ -498,12 +496,6 @@ namespace Serein.NodeFlow NodeModelBase? toNode = snc.Value[i]; RemoteConnect(remoteNode, toNode, connectionType); - //remoteNode.SuccessorNodes[connectionType].RemoveAt(i); - - //OnNodeConnectChange?.Invoke(new NodeConnectChangeEventArgs(remoteNode.Guid, - // toNode.Guid, - // connectionType, - // NodeConnectChangeEventArgs.ConnectChangeType.Remote)); // 通知UI } } @@ -522,8 +514,10 @@ namespace Serein.NodeFlow public void ConnectNode(string fromNodeGuid, string toNodeGuid, ConnectionType connectionType) { // 获取起始节点与目标节点 - NodeModelBase fromNode = GuidToModel(fromNodeGuid); - NodeModelBase toNode = GuidToModel(toNodeGuid); + var fromNode = GuidToModel(fromNodeGuid); + var toNode = GuidToModel(toNodeGuid); + if (fromNode is null) return; + if (toNode is null) return; // 开始连接 ConnectNode(fromNode, toNode, connectionType); // 外部调用连接方法 @@ -539,16 +533,12 @@ namespace Serein.NodeFlow public void RemoteConnect(string fromNodeGuid, string toNodeGuid, ConnectionType connectionType) { // 获取起始节点与目标节点 - NodeModelBase fromNode = GuidToModel(fromNodeGuid); - NodeModelBase toNode = GuidToModel(toNodeGuid); + var fromNode = GuidToModel(fromNodeGuid); + var toNode = GuidToModel(toNodeGuid); + if (fromNode is null) return; + if (toNode is null) return; RemoteConnect(fromNode, toNode, connectionType); - //fromNode.SuccessorNodes[connectionType].Remove(toNode); - //toNode.PreviousNodes[connectionType].Remove(fromNode); - //OnNodeConnectChange?.Invoke(new NodeConnectChangeEventArgs(fromNodeGuid, - // toNodeGuid, - // connectionType, - // NodeConnectChangeEventArgs.ConnectChangeType.Remote)); } @@ -606,29 +596,9 @@ namespace Serein.NodeFlow /// public void SetStartNode(string newNodeGuid) { - NodeModelBase newStartNodeModel = GuidToModel(newNodeGuid); + var newStartNodeModel = GuidToModel(newNodeGuid); + if (newStartNodeModel is null) return; SetStartNode(newStartNodeModel); - - //if (string.IsNullOrEmpty(newNodeGuid)) - //{ - // return; - //} - //if (Nodes.TryGetValue(newNodeGuid, out NodeModelBase? newStartNodeModel)) - //{ - // if (newStartNodeModel != null) - // { - // SetStartNode(newStartNodeModel); - // //var oldNodeGuid = ""; - // //if(StartNode != null) - // //{ - // // oldNodeGuid = StartNode.Guid; - // // StartNode.IsStart = false; - // //} - // //newStartNodeModel.IsStart = true; - // //StartNode = newStartNodeModel; - // //OnStartNodeChange?.Invoke(new StartNodeChangeEventArgs(oldNodeGuid, newNodeGuid)); - // } - //} } /// @@ -637,52 +607,149 @@ namespace Serein.NodeFlow /// 被中断的目标节点Guid /// 中断级别 /// 操作是否成功 - public bool NodeInterruptChange(string nodeGuid, InterruptClass interruptClass) + public bool SetNodeInterrupt(string nodeGuid, InterruptClass interruptClass) { - NodeModelBase nodeModel = GuidToModel(nodeGuid); + var nodeModel = GuidToModel(nodeGuid); + if (nodeModel is null) return false; + if (interruptClass == InterruptClass.None) + { + nodeModel.CancelInterrupt(); + } + else if (interruptClass == InterruptClass.Branch) + { + nodeModel.DebugSetting.CancelInterruptCallback?.Invoke(); + nodeModel.DebugSetting.GetInterruptTask = () => + { + TriggerInterrupt(nodeGuid, "", InterruptTriggerEventArgs.InterruptTriggerType.Monitor); + return ChannelFlowInterrupt.GetOrCreateChannelAsync(nodeGuid); + }; + nodeModel.DebugSetting.CancelInterruptCallback = () => + { + ChannelFlowInterrupt.TriggerSignal(nodeGuid); + }; + + } + else if (interruptClass == InterruptClass.Global) // 全局……做不了omg + { + return false; + } nodeModel.DebugSetting.InterruptClass = interruptClass; OnNodeInterruptStateChange.Invoke(new NodeInterruptStateChangeEventArgs(nodeGuid, interruptClass)); return true; - } + + /// + /// 添加表达式中断 + /// + /// + /// + /// + public bool AddInterruptExpression(string nodeGuid, string expression) + { + var nodeModel = GuidToModel(nodeGuid); + if (nodeModel is null) return false; + if (string.IsNullOrEmpty(expression)) + { + nodeModel.DebugSetting.InterruptExpressions.Clear();// 暂时删除,等UI做好了 + return true; + } + + if (nodeModel.DebugSetting.InterruptExpressions.Contains(expression)) + { + Console.WriteLine("表达式已存在"); + return false; + } + else + { + nodeModel.DebugSetting.InterruptExpressions.Clear();// 暂时删除,等UI做好了 + nodeModel.DebugSetting.InterruptExpressions.Add(expression); + return true; + } + } + + /// /// 监视节点的数据 /// /// 需要监视的节点Guid public void SetNodeFLowDataMonitorState(string nodeGuid, bool isMonitor) { - NodeModelBase nodeModel = GuidToModel(nodeGuid); + var nodeModel = GuidToModel(nodeGuid); + if (nodeModel is null) return; nodeModel.DebugSetting.IsMonitorFlowData = isMonitor; + + if (isMonitor) + { + var obj = nodeModel.GetFlowData(); + if(obj is not null) + { + FlowDataNotification(nodeGuid, obj); + + } + } } /// /// 节点数据更新通知 /// /// - public void FlowDataUpdateNotification(string nodeGuid, object flowData) + public void FlowDataNotification(string nodeGuid, object flowData) { OnMonitorObjectChange?.Invoke(new MonitorObjectEventArgs(nodeGuid, flowData)); } + /// + /// + /// + /// 节点 + /// 表达式 + /// 类型,0节点,1表达式 + public void TriggerInterrupt(string nodeGuid, string expression, InterruptTriggerEventArgs.InterruptTriggerType type) + { + OnInterruptTrigger?.Invoke(new InterruptTriggerEventArgs(nodeGuid, expression, type)); + } + + + public Task GetOrCreateGlobalInterruptAsync() + { + IsGlobalInterrupt = true; + return ChannelFlowInterrupt.GetOrCreateChannelAsync(this.EnvName); + } + + + + + + + + + + + + + /// /// Guid 转 NodeModel /// /// 节点Guid /// 节点Model /// 无法获取节点、Guid/节点为null时报错 - private NodeModelBase GuidToModel(string nodeGuid) + private NodeModelBase? GuidToModel(string nodeGuid) { if (string.IsNullOrEmpty(nodeGuid)) { - throw new ArgumentNullException("not contains - Guid没有对应节点:" + (nodeGuid)); + //throw new ArgumentNullException("not contains - Guid没有对应节点:" + (nodeGuid)); + return null; } if (!Nodes.TryGetValue(nodeGuid, out NodeModelBase? nodeModel) || nodeModel is null) { - throw new ArgumentNullException("null - Guid存在对应节点,但节点为null:" + (nodeGuid)); + //throw new ArgumentNullException("null - Guid存在对应节点,但节点为null:" + (nodeGuid)); + return null; } return nodeModel; } + #endregion #region 私有方法 diff --git a/NodeFlow/FlowStarter.cs b/NodeFlow/FlowStarter.cs index 9737f0a..f46e408 100644 --- a/NodeFlow/FlowStarter.cs +++ b/NodeFlow/FlowStarter.cs @@ -270,6 +270,7 @@ namespace Serein.NodeFlow catch (Exception ex) { await Console.Out.WriteLineAsync(ex.ToString()); + // await Console.Out.WriteLineAsync(ex.Message); } finally { @@ -303,20 +304,27 @@ namespace Serein.NodeFlow while (!_flipFlopCts.IsCancellationRequested) { - var newFlowData = await singleFlipFlopNode.ExecutingAsync(context); - await NodeModelBase.FlowRefreshDataOrInterrupt(context, singleFlipFlopNode, newFlowData); // 全局触发器触发后刷新该触发器的节点数据 + var newFlowData = await singleFlipFlopNode.ExecutingAsync(context); // 获取触发器等待Task + await NodeModelBase.RefreshFlowDataAndExpInterrupt(context, singleFlipFlopNode, newFlowData); // 全局触发器触发后刷新该触发器的节点数据 if (singleFlipFlopNode.NextOrientation != ConnectionType.None) { var nextNodes = singleFlipFlopNode.SuccessorNodes[singleFlipFlopNode.NextOrientation]; for (int i = nextNodes.Count - 1; i >= 0 && !_flipFlopCts.IsCancellationRequested; i--) { - if (nextNodes[i].DebugSetting.IsEnable) // 排除未启用的后继节点 + // 筛选出启用的节点 + if (nextNodes[i].DebugSetting.IsEnable) { nextNodes[i].PreviousNode = singleFlipFlopNode; + if (nextNodes[i].DebugSetting.InterruptClass != InterruptClass.None) // 执行触发前 + { + var cancelType = await nextNodes[i].DebugSetting.GetInterruptTask(); + await Console.Out.WriteLineAsync($"[{nextNodes[i].MethodDetails.MethodName}]中断已{cancelType},开始执行后继分支"); + } await nextNodes[i].StartExecute(context); // 启动执行触发器后继分支的节点 } } } + } } catch (Exception ex) diff --git a/NodeFlow/Model/SingleFlipflopNode.cs b/NodeFlow/Model/SingleFlipflopNode.cs index 983905e..03d0ba8 100644 --- a/NodeFlow/Model/SingleFlipflopNode.cs +++ b/NodeFlow/Model/SingleFlipflopNode.cs @@ -22,12 +22,16 @@ namespace Serein.NodeFlow.Model public override async Task ExecutingAsync(IDynamicContext context) { #region 执行前中断 - if (DebugSetting.InterruptClass != InterruptClass.None && TryCreateInterruptTask(context, this, out Task? task)) // 执行触发前 + if (DebugSetting.InterruptClass != InterruptClass.None) // 执行触发前 { string guid = this.Guid.ToString(); - this.CancelInterruptCallback ??= () => context.FlowEnvironment.ChannelFlowInterrupt.TriggerSignal(guid); - var cancelType = await task!; - await Console.Out.WriteLineAsync($"[{this.MethodDetails.MethodName}]中断已{(cancelType == CancelType.Manual ? "手动取消" : "自动取消")},开始执行后继分支"); + var cancelType = await this.DebugSetting.GetInterruptTask(); + //if (cancelType == CancelType.Discard) + //{ + // this.NextOrientation = ConnectionType.None; + // return null; + //} + await Console.Out.WriteLineAsync($"[{this.MethodDetails.MethodName}]中断已{cancelType},开始执行后继分支"); } #endregion diff --git a/NodeFlow/Tool/SereinExpression/Resolver/MemberConditionResolver.cs b/NodeFlow/Tool/SereinExpression/Resolver/MemberConditionResolver.cs index d75b8ab..db34831 100644 --- a/NodeFlow/Tool/SereinExpression/Resolver/MemberConditionResolver.cs +++ b/NodeFlow/Tool/SereinExpression/Resolver/MemberConditionResolver.cs @@ -14,6 +14,8 @@ namespace Serein.NodeFlow.Tool.SereinExpression.Resolver public T Value { get; set; } public string ArithmeticExpression { get; set; } + public T RangeEnd { get; internal set; } + public T RangeStart { get; internal set; } public override bool Evaluate(object? obj) { @@ -24,6 +26,8 @@ namespace Serein.NodeFlow.Tool.SereinExpression.Resolver { return new ValueTypeConditionResolver { + RangeStart = RangeStart, + RangeEnd = RangeEnd, Op = Op, Value = Value, ArithmeticExpression = ArithmeticExpression, diff --git a/NodeFlow/Tool/SereinExpression/SereinConditionParser.cs b/NodeFlow/Tool/SereinExpression/SereinConditionParser.cs index 1525bbd..0108a2d 100644 --- a/NodeFlow/Tool/SereinExpression/SereinConditionParser.cs +++ b/NodeFlow/Tool/SereinExpression/SereinConditionParser.cs @@ -1,4 +1,6 @@ -using Serein.NodeFlow.Tool.SereinExpression.Resolver; +using Newtonsoft.Json.Linq; +using Serein.NodeFlow.Tool.SereinExpression.Resolver; +using System.ComponentModel.Design; using System.Globalization; using System.Reflection; @@ -153,15 +155,52 @@ namespace Serein.NodeFlow.Tool.SereinExpression #region 解析类型 int if (type == typeof(int)) { - int value = int.Parse(valueStr, CultureInfo.InvariantCulture); - return new MemberConditionResolver + var op = ParseValueTypeOperator(operatorStr); + if (op == ValueTypeConditionResolver.Operator.InRange || op == ValueTypeConditionResolver.Operator.OutOfRange) { + var temp = valueStr.Split('-'); + if (temp.Length < 2) + throw new ArgumentException($"范围无效:{valueStr}。"); + int rangeStart = int.Parse(temp[0], CultureInfo.InvariantCulture); + int rangeEnd = int.Parse(temp[1], CultureInfo.InvariantCulture); + return new MemberConditionResolver + { + Op = op, + RangeStart = rangeStart, + RangeEnd = rangeEnd, + TargetObj = targetObj, + ArithmeticExpression = GetArithmeticExpression(parts[0]), + }; + } + else + { + + int value = int.Parse(valueStr, CultureInfo.InvariantCulture); + + + return new MemberConditionResolver + { TargetObj = targetObj, - //MemberPath = memberPath, + //MemberPath = memberPath, Op = ParseValueTypeOperator(operatorStr), Value = value, ArithmeticExpression = GetArithmeticExpression(parts[0]) - }; + }; + + + } + + + //int value = int.Parse(valueStr, CultureInfo.InvariantCulture); + + //return new MemberConditionResolver + //{ + // TargetObj = targetObj, + // //MemberPath = memberPath, + // Op = ParseValueTypeOperator(operatorStr), + // Value = value, + // ArithmeticExpression = GetArithmeticExpression(parts[0]) + //}; } #endregion #region 解析类型 double diff --git a/WorkBench/LogWindow.xaml b/WorkBench/LogWindow.xaml index 1ebc21c..0fe4f79 100644 --- a/WorkBench/LogWindow.xaml +++ b/WorkBench/LogWindow.xaml @@ -10,6 +10,7 @@ Closing="Window_Closing"> - + - + - + + - + /// - private static void AddPlaceholderNode(TreeViewItem node) + private void AddPlaceholderNode(TreeViewItem node) { node.Items.Add(new TreeViewItem { Header = "Loading..." }); } @@ -148,7 +228,7 @@ namespace Serein.WorkBench.Themes /// /// /// - private static void TreeViewItem_Expanded(object sender, RoutedEventArgs e) + private void TreeViewItem_Expanded(object sender, RoutedEventArgs e) { var item = (TreeViewItem)sender; @@ -157,6 +237,8 @@ namespace Serein.WorkBench.Themes item.Items.Clear(); if (item.Tag is FlowDataDetails flowDataDetails) // FlowDataDetails flowDataDetails object obj { + // 记录当前节点的路径 + _expandedNodePaths.Add(GetNodeFullPath(item)); AddMembersToTreeNode(item, flowDataDetails.DataValue, flowDataDetails.DataType); } } @@ -168,7 +250,7 @@ namespace Serein.WorkBench.Themes /// /// /// - private static void AddMembersToTreeNode(TreeViewItem treeViewNode, object obj, Type type) + private void AddMembersToTreeNode(TreeViewItem treeViewNode, object obj, Type type) { // 获取属性和字段 var members = type.GetMembers(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly); @@ -176,11 +258,13 @@ namespace Serein.WorkBench.Themes { TreeViewItem memberNode = ConfigureTreeViewItem(obj, member); treeViewNode.Items.Add(memberNode); + if (ConfigureTreeItemMenu(memberNode, member, out ContextMenu? contextMenu)) + { + memberNode.ContextMenu = contextMenu; // 设置子项节点的事件 + + } + - //if (ConfigureTreeItemMenu(memberNode, member, out ContextMenu? contextMenu)) - //{ - // memberNode.ContextMenu = contextMenu; // 设置子项节点的事件 - //} } } @@ -191,23 +275,25 @@ namespace Serein.WorkBench.Themes /// /// /// - private static TreeViewItem ConfigureTreeViewItem(object obj, MemberInfo member) + private TreeViewItem ConfigureTreeViewItem(object obj, MemberInfo member) { TreeViewItem memberNode = new TreeViewItem { Header = member.Name }; if (member is PropertyInfo property) { + + string propertyValue = GetPropertyValue(obj, property,out object value); FlowDataDetails flowDataDetails = new FlowDataDetails { ItemType = TreeItemType.Property, DataType = property.PropertyType, Name = property.Name, - DataValue = property, + DataValue = value, + DataPath = GetNodeFullPath(memberNode), }; memberNode.Tag = flowDataDetails; - string propertyValue = GetPropertyValue(obj, property); memberNode.Header = $"{property.Name} : {property.PropertyType.Name} = {propertyValue}"; if (!property.PropertyType.IsPrimitive && property.PropertyType != typeof(string)) @@ -218,18 +304,19 @@ namespace Serein.WorkBench.Themes } else if (member is FieldInfo field) { + + string fieldValue = GetFieldValue(obj, field, out object value); FlowDataDetails flowDataDetails = new FlowDataDetails { ItemType = TreeItemType.Field, DataType = field.FieldType, Name = field.Name, - DataValue = field, + DataValue = value, + DataPath = GetNodeFullPath(memberNode), }; memberNode.Tag = flowDataDetails; - - string fieldValue = GetFieldValue(obj, field); memberNode.Header = $"{field.Name} : {field.FieldType.Name} = {fieldValue}"; if (!field.FieldType.IsPrimitive && field.FieldType != typeof(string)) @@ -248,15 +335,22 @@ namespace Serein.WorkBench.Themes /// /// /// - private static string GetPropertyValue(object obj, PropertyInfo property) - { + private string GetPropertyValue(object obj, PropertyInfo property,out object value) + { try { - var value = property.GetValue(obj); - return value?.ToString() ?? "null"; + + var properties = obj.GetType().GetProperties(); + + + + // 获取实例属性值 + value = property.GetValue(obj); + return value?.ToString() ?? "null"; // 返回值或“null” } catch { + value = null; return "Error"; } } @@ -268,15 +362,16 @@ namespace Serein.WorkBench.Themes /// /// /// - private static string GetFieldValue(object obj, FieldInfo field) + private string GetFieldValue(object obj, FieldInfo field, out object value) { try { - var value = field.GetValue(obj); + value = field.GetValue(obj); return value?.ToString() ?? "null"; } catch { + value = null; return "Error"; } } @@ -288,13 +383,21 @@ namespace Serein.WorkBench.Themes /// /// /// - private static bool ConfigureTreeItemMenu(TreeViewItem memberNode, MemberInfo member, out ContextMenu? contextMenu) + private bool ConfigureTreeItemMenu(TreeViewItem memberNode, MemberInfo member, out ContextMenu? contextMenu) { bool isChange = false; if (member is PropertyInfo property) { - //isChange = true; + isChange = true; contextMenu = new ContextMenu(); + contextMenu.Items.Add(MainWindow.CreateMenuItem($"表达式", (s, e) => + { + string fullPath = GetNodeFullPath(memberNode); + string copyValue = /*"@Get " + */fullPath; + ExpressionTextBox.Text = copyValue; + // Clipboard.SetDataObject(copyValue); + + })); } else if (member is MethodInfo method) { @@ -305,29 +408,13 @@ namespace Serein.WorkBench.Themes { isChange = true; contextMenu = new ContextMenu(); - contextMenu.Items.Add(MainWindow.CreateMenuItem($"取值表达式", (s, e) => + contextMenu.Items.Add(MainWindow.CreateMenuItem($"表达式", (s, e) => { - string fullPath = ObjectViewerControl.GetNodeFullPath(memberNode); - string copyValue = "@Get " + fullPath; - Clipboard.SetDataObject(copyValue); + string fullPath = GetNodeFullPath(memberNode); + string copyValue = /*"@Get " +*/ fullPath; + ExpressionTextBox.Text = copyValue; + // Clipboard.SetDataObject(copyValue); })); - //contextMenu.Items.Add(MainWindow.CreateMenuItem($"监视中断", (s, e) => - //{ - // string fullPath = GetNodeFullPath(memberNode); - // Clipboard.SetDataObject(fullPath); - // OpenInputDialog((exp) => - // { - // if (node.DebugSetting.InterruptExpression.Contains(exp)) - // { - // Console.WriteLine("表达式已存在"); - // } - // else - // { - // node.DebugSetting.InterruptExpression.Add(exp); - // } - // }); - - //})); } else { @@ -336,12 +423,14 @@ namespace Serein.WorkBench.Themes return isChange; } + + /// /// 获取当前节点的完整路径,例如 "node1.node2.node3.node4" /// /// 目标节点 /// 节点路径 - private static string GetNodeFullPath(TreeViewItem node) + private string GetNodeFullPath(TreeViewItem node) { if (node == null) return string.Empty; @@ -366,7 +455,7 @@ namespace Serein.WorkBench.Themes /// /// 目标节点 /// 父节点 - private static TreeViewItem GetParentTreeViewItem(TreeViewItem node) + private TreeViewItem GetParentTreeViewItem(TreeViewItem node) { DependencyObject parent = VisualTreeHelper.GetParent(node); while (parent != null && !(parent is TreeViewItem)) @@ -378,7 +467,7 @@ namespace Serein.WorkBench.Themes - private static InputDialog OpenInputDialog(Action action) + private InputDialog OpenInputDialog(Action action) { var inputDialog = new InputDialog(); inputDialog.Closed += (s, e) => @@ -398,7 +487,6 @@ namespace Serein.WorkBench.Themes - ///// ///// 刷新按钮的点击事件 ///// diff --git a/WorkBench/Themes/TypeViewerWindow.xaml.cs b/WorkBench/Themes/TypeViewerWindow.xaml.cs index cb0da9b..e89fac8 100644 --- a/WorkBench/Themes/TypeViewerWindow.xaml.cs +++ b/WorkBench/Themes/TypeViewerWindow.xaml.cs @@ -163,8 +163,14 @@ namespace Serein.WorkBench.Themes bool isChange = false; if (member is PropertyInfo property) { - //isChange = true; + isChange = true; contextMenu = new ContextMenu(); + contextMenu.Items.Add(MainWindow.CreateMenuItem($"取值表达式", (s, e) => + { + string fullPath = GetNodeFullPath(memberNode); + string copyValue = "@Get " + fullPath; + Clipboard.SetDataObject(copyValue); + })); } else if (member is MethodInfo method) { diff --git a/packages/System.ValueTuple.4.5.0/.signature.p7s b/packages/System.ValueTuple.4.5.0/.signature.p7s new file mode 100644 index 0000000..355e384 Binary files /dev/null and b/packages/System.ValueTuple.4.5.0/.signature.p7s differ diff --git a/packages/System.ValueTuple.4.5.0/LICENSE.TXT b/packages/System.ValueTuple.4.5.0/LICENSE.TXT new file mode 100644 index 0000000..984713a --- /dev/null +++ b/packages/System.ValueTuple.4.5.0/LICENSE.TXT @@ -0,0 +1,23 @@ +The MIT License (MIT) + +Copyright (c) .NET Foundation and Contributors + +All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/System.ValueTuple.4.5.0/System.ValueTuple.4.5.0.nupkg b/packages/System.ValueTuple.4.5.0/System.ValueTuple.4.5.0.nupkg new file mode 100644 index 0000000..595280b Binary files /dev/null and b/packages/System.ValueTuple.4.5.0/System.ValueTuple.4.5.0.nupkg differ diff --git a/packages/System.ValueTuple.4.5.0/THIRD-PARTY-NOTICES.TXT b/packages/System.ValueTuple.4.5.0/THIRD-PARTY-NOTICES.TXT new file mode 100644 index 0000000..db542ca --- /dev/null +++ b/packages/System.ValueTuple.4.5.0/THIRD-PARTY-NOTICES.TXT @@ -0,0 +1,309 @@ +.NET Core uses third-party libraries or other resources that may be +distributed under licenses different than the .NET Core software. + +In the event that we accidentally failed to list a required notice, please +bring it to our attention. Post an issue or email us: + + dotnet@microsoft.com + +The attached notices are provided for information only. + +License notice for Slicing-by-8 +------------------------------- + +http://sourceforge.net/projects/slicing-by-8/ + +Copyright (c) 2004-2006 Intel Corporation - All Rights Reserved + + +This software program is licensed subject to the BSD License, available at +http://www.opensource.org/licenses/bsd-license.html. + + +License notice for Unicode data +------------------------------- + +http://www.unicode.org/copyright.html#License + +Copyright © 1991-2017 Unicode, Inc. All rights reserved. +Distributed under the Terms of Use in http://www.unicode.org/copyright.html. + +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Unicode data files and any associated documentation +(the "Data Files") or Unicode software and any associated documentation +(the "Software") to deal in the Data Files or Software +without restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, and/or sell copies of +the Data Files or Software, and to permit persons to whom the Data Files +or Software are furnished to do so, provided that either +(a) this copyright and permission notice appear with all copies +of the Data Files or Software, or +(b) this copyright and permission notice appear in associated +Documentation. + +THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT OF THIRD PARTY RIGHTS. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS +NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL +DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, +DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THE DATA FILES OR SOFTWARE. + +Except as contained in this notice, the name of a copyright holder +shall not be used in advertising or otherwise to promote the sale, +use or other dealings in these Data Files or Software without prior +written authorization of the copyright holder. + +License notice for Zlib +----------------------- + +https://github.com/madler/zlib +http://zlib.net/zlib_license.html + +/* zlib.h -- interface of the 'zlib' general purpose compression library + version 1.2.11, January 15th, 2017 + + Copyright (C) 1995-2017 Jean-loup Gailly and Mark Adler + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. + + Jean-loup Gailly Mark Adler + jloup@gzip.org madler@alumni.caltech.edu + +*/ + +License notice for Mono +------------------------------- + +http://www.mono-project.com/docs/about-mono/ + +Copyright (c) .NET Foundation Contributors + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the Software), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +License notice for International Organization for Standardization +----------------------------------------------------------------- + +Portions (C) International Organization for Standardization 1986: + Permission to copy in any form is granted for use with + conforming SGML systems and applications as defined in + ISO 8879, provided this notice is included in all copies. + +License notice for Intel +------------------------ + +"Copyright (c) 2004-2006 Intel Corporation - All Rights Reserved + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, +this list of conditions and the following disclaimer in the documentation +and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +License notice for Xamarin and Novell +------------------------------------- + +Copyright (c) 2015 Xamarin, Inc (http://www.xamarin.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +Copyright (c) 2011 Novell, Inc (http://www.novell.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +Third party notice for W3C +-------------------------- + +"W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE +Status: This license takes effect 13 May, 2015. +This work is being provided by the copyright holders under the following license. +License +By obtaining and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions. +Permission to copy, modify, and distribute this work, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the work or portions thereof, including modifications: +The full text of this NOTICE in a location viewable to users of the redistributed or derivative work. +Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software and Document Short Notice should be included. +Notice of any changes or modifications, through a copyright statement on the new code or document such as "This software or document includes material copied from or derived from [title and URI of the W3C document]. Copyright © [YEAR] W3C® (MIT, ERCIM, Keio, Beihang)." +Disclaimers +THIS WORK IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENT WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. +COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENT. +The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the work without specific, written prior permission. Title to copyright in this work will at all times remain with copyright holders." + +License notice for Bit Twiddling Hacks +-------------------------------------- + +Bit Twiddling Hacks + +By Sean Eron Anderson +seander@cs.stanford.edu + +Individually, the code snippets here are in the public domain (unless otherwise +noted) — feel free to use them however you please. The aggregate collection and +descriptions are © 1997-2005 Sean Eron Anderson. The code and descriptions are +distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY and +without even the implied warranty of merchantability or fitness for a particular +purpose. + +License notice for Brotli +-------------------------------------- + +Copyright (c) 2009, 2010, 2013-2016 by the Brotli Authors. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +compress_fragment.c: +Copyright (c) 2011, Google Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +""AS IS"" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +decode_fuzzer.c: +Copyright (c) 2015 The Chromium Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +""AS IS"" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." + diff --git a/packages/System.ValueTuple.4.5.0/lib/MonoAndroid10/_._ b/packages/System.ValueTuple.4.5.0/lib/MonoAndroid10/_._ new file mode 100644 index 0000000..e69de29 diff --git a/packages/System.ValueTuple.4.5.0/lib/MonoTouch10/_._ b/packages/System.ValueTuple.4.5.0/lib/MonoTouch10/_._ new file mode 100644 index 0000000..e69de29 diff --git a/packages/System.ValueTuple.4.5.0/lib/net461/System.ValueTuple.xml b/packages/System.ValueTuple.4.5.0/lib/net461/System.ValueTuple.xml new file mode 100644 index 0000000..6dcce66 --- /dev/null +++ b/packages/System.ValueTuple.4.5.0/lib/net461/System.ValueTuple.xml @@ -0,0 +1,1299 @@ + + + + System.ValueTuple + + + + + Indicates that the use of on a member is meant to be treated as a tuple with element names. + + + + + Initializes a new instance of the class. + + + Specifies, in a pre-order depth-first traversal of a type's + construction, which occurrences are + meant to carry element names. + + + This constructor is meant to be used on types that contain an + instantiation of that contains + element names. For instance, if C is a generic type with + two type parameters, then a use of the constructed type C{, might be intended to + treat the first type argument as a tuple with element names and the + second as a tuple without element names. In which case, the + appropriate attribute specification should use a + transformNames value of { "name1", "name2", null, null, + null }. + + + + + Specifies, in a pre-order depth-first traversal of a type's + construction, which elements are + meant to carry element names. + + + + + Provides extension methods for instances to interop with C# tuples features (deconstruction syntax, converting from and to ). + + + + + Deconstruct a properly nested with 1 elements. + + + + + Deconstruct a properly nested with 2 elements. + + + + + Deconstruct a properly nested with 3 elements. + + + + + Deconstruct a properly nested with 4 elements. + + + + + Deconstruct a properly nested with 5 elements. + + + + + Deconstruct a properly nested with 6 elements. + + + + + Deconstruct a properly nested with 7 elements. + + + + + Deconstruct a properly nested with 8 elements. + + + + + Deconstruct a properly nested with 9 elements. + + + + + Deconstruct a properly nested with 10 elements. + + + + + Deconstruct a properly nested with 11 elements. + + + + + Deconstruct a properly nested with 12 elements. + + + + + Deconstruct a properly nested with 13 elements. + + + + + Deconstruct a properly nested with 14 elements. + + + + + Deconstruct a properly nested with 15 elements. + + + + + Deconstruct a properly nested with 16 elements. + + + + + Deconstruct a properly nested with 17 elements. + + + + + Deconstruct a properly nested with 18 elements. + + + + + Deconstruct a properly nested with 19 elements. + + + + + Deconstruct a properly nested with 20 elements. + + + + + Deconstruct a properly nested with 21 elements. + + + + + Make a properly nested from a properly nested with 1 element. + + + + + Make a properly nested from a properly nested with 2 elements. + + + + + Make a properly nested from a properly nested with 3 elements. + + + + + Make a properly nested from a properly nested with 4 elements. + + + + + Make a properly nested from a properly nested with 5 elements. + + + + + Make a properly nested from a properly nested with 6 elements. + + + + + Make a properly nested from a properly nested with 7 elements. + + + + + Make a properly nested from a properly nested with 8 elements. + + + + + Make a properly nested from a properly nested with 9 elements. + + + + + Make a properly nested from a properly nested with 10 elements. + + + + + Make a properly nested from a properly nested with 11 elements. + + + + + Make a properly nested from a properly nested with 12 elements. + + + + + Make a properly nested from a properly nested with 13 elements. + + + + + Make a properly nested from a properly nested with 14 elements. + + + + + Make a properly nested from a properly nested with 15 elements. + + + + + Make a properly nested from a properly nested with 16 elements. + + + + + Make a properly nested from a properly nested with 17 elements. + + + + + Make a properly nested from a properly nested with 18 elements. + + + + + Make a properly nested from a properly nested with 19 elements. + + + + + Make a properly nested from a properly nested with 20 elements. + + + + + Make a properly nested from a properly nested with 21 elements. + + + + + Make a properly nested from a properly nested with 1 element. + + + + + Make a properly nested from a properly nested with 2 elements. + + + + + Make a properly nested from a properly nested with 3 elements. + + + + + Make a properly nested from a properly nested with 4 elements. + + + + + Make a properly nested from a properly nested with 5 elements. + + + + + Make a properly nested from a properly nested with 6 elements. + + + + + Make a properly nested from a properly nested with 7 elements. + + + + + Make a properly nested from a properly nested with 8 elements. + + + + + Make a properly nested from a properly nested with 9 elements. + + + + + Make a properly nested from a properly nested with 10 elements. + + + + + Make a properly nested from a properly nested with 11 elements. + + + + + Make a properly nested from a properly nested with 12 elements. + + + + + Make a properly nested from a properly nested with 13 elements. + + + + + Make a properly nested from a properly nested with 14 elements. + + + + + Make a properly nested from a properly nested with 15 elements. + + + + + Make a properly nested from a properly nested with 16 elements. + + + + + Make a properly nested from a properly nested with 17 elements. + + + + + Make a properly nested from a properly nested with 18 elements. + + + + + Make a properly nested from a properly nested with 19 elements. + + + + + Make a properly nested from a properly nested with 20 elements. + + + + + Make a properly nested from a properly nested with 21 elements. + + + + + Helper so we can call some tuple methods recursively without knowing the underlying types. + + + + + The ValueTuple types (from arity 0 to 8) comprise the runtime implementation that underlies tuples in C# and struct tuples in F#. + Aside from created via language syntax, they are most easily created via the ValueTuple.Create factory methods. + The System.ValueTuple types differ from the System.Tuple types in that: + - they are structs rather than classes, + - they are mutable rather than readonly, and + - their members (such as Item1, Item2, etc) are fields rather than properties. + + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if is a . + + + Returns a value indicating whether this instance is equal to a specified value. + An instance to compare to this instance. + true if has the same value as this instance; otherwise, false. + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + Returns the hash code for this instance. + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (). + + + + Creates a new struct 0-tuple. + A 0-tuple. + + + Creates a new struct 1-tuple, or singleton. + The type of the first component of the tuple. + The value of the first component of the tuple. + A 1-tuple (singleton) whose value is (item1). + + + Creates a new struct 2-tuple, or pair. + The type of the first component of the tuple. + The type of the second component of the tuple. + The value of the first component of the tuple. + The value of the second component of the tuple. + A 2-tuple (pair) whose value is (item1, item2). + + + Creates a new struct 3-tuple, or triple. + The type of the first component of the tuple. + The type of the second component of the tuple. + The type of the third component of the tuple. + The value of the first component of the tuple. + The value of the second component of the tuple. + The value of the third component of the tuple. + A 3-tuple (triple) whose value is (item1, item2, item3). + + + Creates a new struct 4-tuple, or quadruple. + The type of the first component of the tuple. + The type of the second component of the tuple. + The type of the third component of the tuple. + The type of the fourth component of the tuple. + The value of the first component of the tuple. + The value of the second component of the tuple. + The value of the third component of the tuple. + The value of the fourth component of the tuple. + A 4-tuple (quadruple) whose value is (item1, item2, item3, item4). + + + Creates a new struct 5-tuple, or quintuple. + The type of the first component of the tuple. + The type of the second component of the tuple. + The type of the third component of the tuple. + The type of the fourth component of the tuple. + The type of the fifth component of the tuple. + The value of the first component of the tuple. + The value of the second component of the tuple. + The value of the third component of the tuple. + The value of the fourth component of the tuple. + The value of the fifth component of the tuple. + A 5-tuple (quintuple) whose value is (item1, item2, item3, item4, item5). + + + Creates a new struct 6-tuple, or sextuple. + The type of the first component of the tuple. + The type of the second component of the tuple. + The type of the third component of the tuple. + The type of the fourth component of the tuple. + The type of the fifth component of the tuple. + The type of the sixth component of the tuple. + The value of the first component of the tuple. + The value of the second component of the tuple. + The value of the third component of the tuple. + The value of the fourth component of the tuple. + The value of the fifth component of the tuple. + The value of the sixth component of the tuple. + A 6-tuple (sextuple) whose value is (item1, item2, item3, item4, item5, item6). + + + Creates a new struct 7-tuple, or septuple. + The type of the first component of the tuple. + The type of the second component of the tuple. + The type of the third component of the tuple. + The type of the fourth component of the tuple. + The type of the fifth component of the tuple. + The type of the sixth component of the tuple. + The type of the seventh component of the tuple. + The value of the first component of the tuple. + The value of the second component of the tuple. + The value of the third component of the tuple. + The value of the fourth component of the tuple. + The value of the fifth component of the tuple. + The value of the sixth component of the tuple. + The value of the seventh component of the tuple. + A 7-tuple (septuple) whose value is (item1, item2, item3, item4, item5, item6, item7). + + + Creates a new struct 8-tuple, or octuple. + The type of the first component of the tuple. + The type of the second component of the tuple. + The type of the third component of the tuple. + The type of the fourth component of the tuple. + The type of the fifth component of the tuple. + The type of the sixth component of the tuple. + The type of the seventh component of the tuple. + The type of the eighth component of the tuple. + The value of the first component of the tuple. + The value of the second component of the tuple. + The value of the third component of the tuple. + The value of the fourth component of the tuple. + The value of the fifth component of the tuple. + The value of the sixth component of the tuple. + The value of the seventh component of the tuple. + The value of the eighth component of the tuple. + An 8-tuple (octuple) whose value is (item1, item2, item3, item4, item5, item6, item7, item8). + + + Represents a 1-tuple, or singleton, as a value type. + The type of the tuple's only component. + + + + The current instance's first component. + + + + + Initializes a new instance of the value type. + + The value of the tuple's first component. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if the current instance is equal to the specified object; otherwise, . + + The parameter is considered to be equal to the current instance under the following conditions: + + It is a value type. + Its components are of the same types as those of the current instance. + Its components are equal to those of the current instance. Equality is determined by the default object equality comparer for each component. + + + + + + Returns a value that indicates whether the current + instance is equal to a specified . + + The tuple to compare with this instance. + if the current instance is equal to the specified tuple; otherwise, . + + The parameter is considered to be equal to the current instance if each of its field + is equal to that of the current instance, using the default comparer for that field's type. + + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + + Returns the hash code for the current instance. + + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (Item1), + where Item1 represents the value of . If the field is , + it is represented as . + + + + + Represents a 2-tuple, or pair, as a value type. + + The type of the tuple's first component. + The type of the tuple's second component. + + + + The current instance's first component. + + + + + The current instance's second component. + + + + + Initializes a new instance of the value type. + + The value of the tuple's first component. + The value of the tuple's second component. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if the current instance is equal to the specified object; otherwise, . + + + The parameter is considered to be equal to the current instance under the following conditions: + + It is a value type. + Its components are of the same types as those of the current instance. + Its components are equal to those of the current instance. Equality is determined by the default object equality comparer for each component. + + + + + + Returns a value that indicates whether the current instance is equal to a specified . + + The tuple to compare with this instance. + if the current instance is equal to the specified tuple; otherwise, . + + The parameter is considered to be equal to the current instance if each of its fields + are equal to that of the current instance, using the default comparer for that field's type. + + + + + Returns a value that indicates whether the current instance is equal to a specified object based on a specified comparison method. + + The object to compare with this instance. + An object that defines the method to use to evaluate whether the two objects are equal. + if the current instance is equal to the specified object; otherwise, . + + + This member is an explicit interface member implementation. It can be used only when the + instance is cast to an interface. + + The implementation is called only if other is not , + and if it can be successfully cast (in C#) or converted (in Visual Basic) to a + whose components are of the same types as those of the current instance. The IStructuralEquatable.Equals(Object, IEqualityComparer) method + first passes the values of the objects to be compared to the + implementation. If this method call returns , the method is + called again and passed the values of the two instances. + + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + + Returns the hash code for the current instance. + + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (Item1, Item2), + where Item1 and Item2 represent the values of the + and fields. If either field value is , + it is represented as . + + + + + Represents a 3-tuple, or triple, as a value type. + + The type of the tuple's first component. + The type of the tuple's second component. + The type of the tuple's third component. + + + + The current instance's first component. + + + + + The current instance's second component. + + + + + The current instance's third component. + + + + + Initializes a new instance of the value type. + + The value of the tuple's first component. + The value of the tuple's second component. + The value of the tuple's third component. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if the current instance is equal to the specified object; otherwise, . + + The parameter is considered to be equal to the current instance under the following conditions: + + It is a value type. + Its components are of the same types as those of the current instance. + Its components are equal to those of the current instance. Equality is determined by the default object equality comparer for each component. + + + + + + Returns a value that indicates whether the current + instance is equal to a specified . + + The tuple to compare with this instance. + if the current instance is equal to the specified tuple; otherwise, . + + The parameter is considered to be equal to the current instance if each of its fields + are equal to that of the current instance, using the default comparer for that field's type. + + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + + Returns the hash code for the current instance. + + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (Item1, Item2, Item3). + If any field value is , it is represented as . + + + + + Represents a 4-tuple, or quadruple, as a value type. + + The type of the tuple's first component. + The type of the tuple's second component. + The type of the tuple's third component. + The type of the tuple's fourth component. + + + + The current instance's first component. + + + + + The current instance's second component. + + + + + The current instance's third component. + + + + + The current instance's fourth component. + + + + + Initializes a new instance of the value type. + + The value of the tuple's first component. + The value of the tuple's second component. + The value of the tuple's third component. + The value of the tuple's fourth component. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if the current instance is equal to the specified object; otherwise, . + + The parameter is considered to be equal to the current instance under the following conditions: + + It is a value type. + Its components are of the same types as those of the current instance. + Its components are equal to those of the current instance. Equality is determined by the default object equality comparer for each component. + + + + + + Returns a value that indicates whether the current + instance is equal to a specified . + + The tuple to compare with this instance. + if the current instance is equal to the specified tuple; otherwise, . + + The parameter is considered to be equal to the current instance if each of its fields + are equal to that of the current instance, using the default comparer for that field's type. + + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + + Returns the hash code for the current instance. + + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (Item1, Item2, Item3, Item4). + If any field value is , it is represented as . + + + + + Represents a 5-tuple, or quintuple, as a value type. + + The type of the tuple's first component. + The type of the tuple's second component. + The type of the tuple's third component. + The type of the tuple's fourth component. + The type of the tuple's fifth component. + + + + The current instance's first component. + + + + + The current instance's second component. + + + + + The current instance's third component. + + + + + The current instance's fourth component. + + + + + The current instance's fifth component. + + + + + Initializes a new instance of the value type. + + The value of the tuple's first component. + The value of the tuple's second component. + The value of the tuple's third component. + The value of the tuple's fourth component. + The value of the tuple's fifth component. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if the current instance is equal to the specified object; otherwise, . + + The parameter is considered to be equal to the current instance under the following conditions: + + It is a value type. + Its components are of the same types as those of the current instance. + Its components are equal to those of the current instance. Equality is determined by the default object equality comparer for each component. + + + + + + Returns a value that indicates whether the current + instance is equal to a specified . + + The tuple to compare with this instance. + if the current instance is equal to the specified tuple; otherwise, . + + The parameter is considered to be equal to the current instance if each of its fields + are equal to that of the current instance, using the default comparer for that field's type. + + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + + Returns the hash code for the current instance. + + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (Item1, Item2, Item3, Item4, Item5). + If any field value is , it is represented as . + + + + + Represents a 6-tuple, or sixtuple, as a value type. + + The type of the tuple's first component. + The type of the tuple's second component. + The type of the tuple's third component. + The type of the tuple's fourth component. + The type of the tuple's fifth component. + The type of the tuple's sixth component. + + + + The current instance's first component. + + + + + The current instance's second component. + + + + + The current instance's third component. + + + + + The current instance's fourth component. + + + + + The current instance's fifth component. + + + + + The current instance's sixth component. + + + + + Initializes a new instance of the value type. + + The value of the tuple's first component. + The value of the tuple's second component. + The value of the tuple's third component. + The value of the tuple's fourth component. + The value of the tuple's fifth component. + The value of the tuple's sixth component. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if the current instance is equal to the specified object; otherwise, . + + The parameter is considered to be equal to the current instance under the following conditions: + + It is a value type. + Its components are of the same types as those of the current instance. + Its components are equal to those of the current instance. Equality is determined by the default object equality comparer for each component. + + + + + + Returns a value that indicates whether the current + instance is equal to a specified . + + The tuple to compare with this instance. + if the current instance is equal to the specified tuple; otherwise, . + + The parameter is considered to be equal to the current instance if each of its fields + are equal to that of the current instance, using the default comparer for that field's type. + + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + + Returns the hash code for the current instance. + + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (Item1, Item2, Item3, Item4, Item5, Item6). + If any field value is , it is represented as . + + + + + Represents a 7-tuple, or sentuple, as a value type. + + The type of the tuple's first component. + The type of the tuple's second component. + The type of the tuple's third component. + The type of the tuple's fourth component. + The type of the tuple's fifth component. + The type of the tuple's sixth component. + The type of the tuple's seventh component. + + + + The current instance's first component. + + + + + The current instance's second component. + + + + + The current instance's third component. + + + + + The current instance's fourth component. + + + + + The current instance's fifth component. + + + + + The current instance's sixth component. + + + + + The current instance's seventh component. + + + + + Initializes a new instance of the value type. + + The value of the tuple's first component. + The value of the tuple's second component. + The value of the tuple's third component. + The value of the tuple's fourth component. + The value of the tuple's fifth component. + The value of the tuple's sixth component. + The value of the tuple's seventh component. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if the current instance is equal to the specified object; otherwise, . + + The parameter is considered to be equal to the current instance under the following conditions: + + It is a value type. + Its components are of the same types as those of the current instance. + Its components are equal to those of the current instance. Equality is determined by the default object equality comparer for each component. + + + + + + Returns a value that indicates whether the current + instance is equal to a specified . + + The tuple to compare with this instance. + if the current instance is equal to the specified tuple; otherwise, . + + The parameter is considered to be equal to the current instance if each of its fields + are equal to that of the current instance, using the default comparer for that field's type. + + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + + Returns the hash code for the current instance. + + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (Item1, Item2, Item3, Item4, Item5, Item6, Item7). + If any field value is , it is represented as . + + + + + Represents an 8-tuple, or octuple, as a value type. + + The type of the tuple's first component. + The type of the tuple's second component. + The type of the tuple's third component. + The type of the tuple's fourth component. + The type of the tuple's fifth component. + The type of the tuple's sixth component. + The type of the tuple's seventh component. + The type of the tuple's eighth component. + + + + The current instance's first component. + + + + + The current instance's second component. + + + + + The current instance's third component. + + + + + The current instance's fourth component. + + + + + The current instance's fifth component. + + + + + The current instance's sixth component. + + + + + The current instance's seventh component. + + + + + The current instance's eighth component. + + + + + Initializes a new instance of the value type. + + The value of the tuple's first component. + The value of the tuple's second component. + The value of the tuple's third component. + The value of the tuple's fourth component. + The value of the tuple's fifth component. + The value of the tuple's sixth component. + The value of the tuple's seventh component. + The value of the tuple's eight component. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if the current instance is equal to the specified object; otherwise, . + + The parameter is considered to be equal to the current instance under the following conditions: + + It is a value type. + Its components are of the same types as those of the current instance. + Its components are equal to those of the current instance. Equality is determined by the default object equality comparer for each component. + + + + + + Returns a value that indicates whether the current + instance is equal to a specified . + + The tuple to compare with this instance. + if the current instance is equal to the specified tuple; otherwise, . + + The parameter is considered to be equal to the current instance if each of its fields + are equal to that of the current instance, using the default comparer for that field's type. + + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + + Returns the hash code for the current instance. + + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (Item1, Item2, Item3, Item4, Item5, Item6, Item7, Rest). + If any field value is , it is represented as . + + + + diff --git a/packages/System.ValueTuple.4.5.0/lib/net47/System.ValueTuple.xml b/packages/System.ValueTuple.4.5.0/lib/net47/System.ValueTuple.xml new file mode 100644 index 0000000..1151832 --- /dev/null +++ b/packages/System.ValueTuple.4.5.0/lib/net47/System.ValueTuple.xml @@ -0,0 +1,8 @@ + + + + System.ValueTuple + + + + diff --git a/packages/System.ValueTuple.4.5.0/lib/netcoreapp2.0/_._ b/packages/System.ValueTuple.4.5.0/lib/netcoreapp2.0/_._ new file mode 100644 index 0000000..e69de29 diff --git a/packages/System.ValueTuple.4.5.0/lib/netstandard1.0/System.ValueTuple.xml b/packages/System.ValueTuple.4.5.0/lib/netstandard1.0/System.ValueTuple.xml new file mode 100644 index 0000000..6dcce66 --- /dev/null +++ b/packages/System.ValueTuple.4.5.0/lib/netstandard1.0/System.ValueTuple.xml @@ -0,0 +1,1299 @@ + + + + System.ValueTuple + + + + + Indicates that the use of on a member is meant to be treated as a tuple with element names. + + + + + Initializes a new instance of the class. + + + Specifies, in a pre-order depth-first traversal of a type's + construction, which occurrences are + meant to carry element names. + + + This constructor is meant to be used on types that contain an + instantiation of that contains + element names. For instance, if C is a generic type with + two type parameters, then a use of the constructed type C{, might be intended to + treat the first type argument as a tuple with element names and the + second as a tuple without element names. In which case, the + appropriate attribute specification should use a + transformNames value of { "name1", "name2", null, null, + null }. + + + + + Specifies, in a pre-order depth-first traversal of a type's + construction, which elements are + meant to carry element names. + + + + + Provides extension methods for instances to interop with C# tuples features (deconstruction syntax, converting from and to ). + + + + + Deconstruct a properly nested with 1 elements. + + + + + Deconstruct a properly nested with 2 elements. + + + + + Deconstruct a properly nested with 3 elements. + + + + + Deconstruct a properly nested with 4 elements. + + + + + Deconstruct a properly nested with 5 elements. + + + + + Deconstruct a properly nested with 6 elements. + + + + + Deconstruct a properly nested with 7 elements. + + + + + Deconstruct a properly nested with 8 elements. + + + + + Deconstruct a properly nested with 9 elements. + + + + + Deconstruct a properly nested with 10 elements. + + + + + Deconstruct a properly nested with 11 elements. + + + + + Deconstruct a properly nested with 12 elements. + + + + + Deconstruct a properly nested with 13 elements. + + + + + Deconstruct a properly nested with 14 elements. + + + + + Deconstruct a properly nested with 15 elements. + + + + + Deconstruct a properly nested with 16 elements. + + + + + Deconstruct a properly nested with 17 elements. + + + + + Deconstruct a properly nested with 18 elements. + + + + + Deconstruct a properly nested with 19 elements. + + + + + Deconstruct a properly nested with 20 elements. + + + + + Deconstruct a properly nested with 21 elements. + + + + + Make a properly nested from a properly nested with 1 element. + + + + + Make a properly nested from a properly nested with 2 elements. + + + + + Make a properly nested from a properly nested with 3 elements. + + + + + Make a properly nested from a properly nested with 4 elements. + + + + + Make a properly nested from a properly nested with 5 elements. + + + + + Make a properly nested from a properly nested with 6 elements. + + + + + Make a properly nested from a properly nested with 7 elements. + + + + + Make a properly nested from a properly nested with 8 elements. + + + + + Make a properly nested from a properly nested with 9 elements. + + + + + Make a properly nested from a properly nested with 10 elements. + + + + + Make a properly nested from a properly nested with 11 elements. + + + + + Make a properly nested from a properly nested with 12 elements. + + + + + Make a properly nested from a properly nested with 13 elements. + + + + + Make a properly nested from a properly nested with 14 elements. + + + + + Make a properly nested from a properly nested with 15 elements. + + + + + Make a properly nested from a properly nested with 16 elements. + + + + + Make a properly nested from a properly nested with 17 elements. + + + + + Make a properly nested from a properly nested with 18 elements. + + + + + Make a properly nested from a properly nested with 19 elements. + + + + + Make a properly nested from a properly nested with 20 elements. + + + + + Make a properly nested from a properly nested with 21 elements. + + + + + Make a properly nested from a properly nested with 1 element. + + + + + Make a properly nested from a properly nested with 2 elements. + + + + + Make a properly nested from a properly nested with 3 elements. + + + + + Make a properly nested from a properly nested with 4 elements. + + + + + Make a properly nested from a properly nested with 5 elements. + + + + + Make a properly nested from a properly nested with 6 elements. + + + + + Make a properly nested from a properly nested with 7 elements. + + + + + Make a properly nested from a properly nested with 8 elements. + + + + + Make a properly nested from a properly nested with 9 elements. + + + + + Make a properly nested from a properly nested with 10 elements. + + + + + Make a properly nested from a properly nested with 11 elements. + + + + + Make a properly nested from a properly nested with 12 elements. + + + + + Make a properly nested from a properly nested with 13 elements. + + + + + Make a properly nested from a properly nested with 14 elements. + + + + + Make a properly nested from a properly nested with 15 elements. + + + + + Make a properly nested from a properly nested with 16 elements. + + + + + Make a properly nested from a properly nested with 17 elements. + + + + + Make a properly nested from a properly nested with 18 elements. + + + + + Make a properly nested from a properly nested with 19 elements. + + + + + Make a properly nested from a properly nested with 20 elements. + + + + + Make a properly nested from a properly nested with 21 elements. + + + + + Helper so we can call some tuple methods recursively without knowing the underlying types. + + + + + The ValueTuple types (from arity 0 to 8) comprise the runtime implementation that underlies tuples in C# and struct tuples in F#. + Aside from created via language syntax, they are most easily created via the ValueTuple.Create factory methods. + The System.ValueTuple types differ from the System.Tuple types in that: + - they are structs rather than classes, + - they are mutable rather than readonly, and + - their members (such as Item1, Item2, etc) are fields rather than properties. + + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if is a . + + + Returns a value indicating whether this instance is equal to a specified value. + An instance to compare to this instance. + true if has the same value as this instance; otherwise, false. + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + Returns the hash code for this instance. + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (). + + + + Creates a new struct 0-tuple. + A 0-tuple. + + + Creates a new struct 1-tuple, or singleton. + The type of the first component of the tuple. + The value of the first component of the tuple. + A 1-tuple (singleton) whose value is (item1). + + + Creates a new struct 2-tuple, or pair. + The type of the first component of the tuple. + The type of the second component of the tuple. + The value of the first component of the tuple. + The value of the second component of the tuple. + A 2-tuple (pair) whose value is (item1, item2). + + + Creates a new struct 3-tuple, or triple. + The type of the first component of the tuple. + The type of the second component of the tuple. + The type of the third component of the tuple. + The value of the first component of the tuple. + The value of the second component of the tuple. + The value of the third component of the tuple. + A 3-tuple (triple) whose value is (item1, item2, item3). + + + Creates a new struct 4-tuple, or quadruple. + The type of the first component of the tuple. + The type of the second component of the tuple. + The type of the third component of the tuple. + The type of the fourth component of the tuple. + The value of the first component of the tuple. + The value of the second component of the tuple. + The value of the third component of the tuple. + The value of the fourth component of the tuple. + A 4-tuple (quadruple) whose value is (item1, item2, item3, item4). + + + Creates a new struct 5-tuple, or quintuple. + The type of the first component of the tuple. + The type of the second component of the tuple. + The type of the third component of the tuple. + The type of the fourth component of the tuple. + The type of the fifth component of the tuple. + The value of the first component of the tuple. + The value of the second component of the tuple. + The value of the third component of the tuple. + The value of the fourth component of the tuple. + The value of the fifth component of the tuple. + A 5-tuple (quintuple) whose value is (item1, item2, item3, item4, item5). + + + Creates a new struct 6-tuple, or sextuple. + The type of the first component of the tuple. + The type of the second component of the tuple. + The type of the third component of the tuple. + The type of the fourth component of the tuple. + The type of the fifth component of the tuple. + The type of the sixth component of the tuple. + The value of the first component of the tuple. + The value of the second component of the tuple. + The value of the third component of the tuple. + The value of the fourth component of the tuple. + The value of the fifth component of the tuple. + The value of the sixth component of the tuple. + A 6-tuple (sextuple) whose value is (item1, item2, item3, item4, item5, item6). + + + Creates a new struct 7-tuple, or septuple. + The type of the first component of the tuple. + The type of the second component of the tuple. + The type of the third component of the tuple. + The type of the fourth component of the tuple. + The type of the fifth component of the tuple. + The type of the sixth component of the tuple. + The type of the seventh component of the tuple. + The value of the first component of the tuple. + The value of the second component of the tuple. + The value of the third component of the tuple. + The value of the fourth component of the tuple. + The value of the fifth component of the tuple. + The value of the sixth component of the tuple. + The value of the seventh component of the tuple. + A 7-tuple (septuple) whose value is (item1, item2, item3, item4, item5, item6, item7). + + + Creates a new struct 8-tuple, or octuple. + The type of the first component of the tuple. + The type of the second component of the tuple. + The type of the third component of the tuple. + The type of the fourth component of the tuple. + The type of the fifth component of the tuple. + The type of the sixth component of the tuple. + The type of the seventh component of the tuple. + The type of the eighth component of the tuple. + The value of the first component of the tuple. + The value of the second component of the tuple. + The value of the third component of the tuple. + The value of the fourth component of the tuple. + The value of the fifth component of the tuple. + The value of the sixth component of the tuple. + The value of the seventh component of the tuple. + The value of the eighth component of the tuple. + An 8-tuple (octuple) whose value is (item1, item2, item3, item4, item5, item6, item7, item8). + + + Represents a 1-tuple, or singleton, as a value type. + The type of the tuple's only component. + + + + The current instance's first component. + + + + + Initializes a new instance of the value type. + + The value of the tuple's first component. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if the current instance is equal to the specified object; otherwise, . + + The parameter is considered to be equal to the current instance under the following conditions: + + It is a value type. + Its components are of the same types as those of the current instance. + Its components are equal to those of the current instance. Equality is determined by the default object equality comparer for each component. + + + + + + Returns a value that indicates whether the current + instance is equal to a specified . + + The tuple to compare with this instance. + if the current instance is equal to the specified tuple; otherwise, . + + The parameter is considered to be equal to the current instance if each of its field + is equal to that of the current instance, using the default comparer for that field's type. + + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + + Returns the hash code for the current instance. + + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (Item1), + where Item1 represents the value of . If the field is , + it is represented as . + + + + + Represents a 2-tuple, or pair, as a value type. + + The type of the tuple's first component. + The type of the tuple's second component. + + + + The current instance's first component. + + + + + The current instance's second component. + + + + + Initializes a new instance of the value type. + + The value of the tuple's first component. + The value of the tuple's second component. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if the current instance is equal to the specified object; otherwise, . + + + The parameter is considered to be equal to the current instance under the following conditions: + + It is a value type. + Its components are of the same types as those of the current instance. + Its components are equal to those of the current instance. Equality is determined by the default object equality comparer for each component. + + + + + + Returns a value that indicates whether the current instance is equal to a specified . + + The tuple to compare with this instance. + if the current instance is equal to the specified tuple; otherwise, . + + The parameter is considered to be equal to the current instance if each of its fields + are equal to that of the current instance, using the default comparer for that field's type. + + + + + Returns a value that indicates whether the current instance is equal to a specified object based on a specified comparison method. + + The object to compare with this instance. + An object that defines the method to use to evaluate whether the two objects are equal. + if the current instance is equal to the specified object; otherwise, . + + + This member is an explicit interface member implementation. It can be used only when the + instance is cast to an interface. + + The implementation is called only if other is not , + and if it can be successfully cast (in C#) or converted (in Visual Basic) to a + whose components are of the same types as those of the current instance. The IStructuralEquatable.Equals(Object, IEqualityComparer) method + first passes the values of the objects to be compared to the + implementation. If this method call returns , the method is + called again and passed the values of the two instances. + + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + + Returns the hash code for the current instance. + + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (Item1, Item2), + where Item1 and Item2 represent the values of the + and fields. If either field value is , + it is represented as . + + + + + Represents a 3-tuple, or triple, as a value type. + + The type of the tuple's first component. + The type of the tuple's second component. + The type of the tuple's third component. + + + + The current instance's first component. + + + + + The current instance's second component. + + + + + The current instance's third component. + + + + + Initializes a new instance of the value type. + + The value of the tuple's first component. + The value of the tuple's second component. + The value of the tuple's third component. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if the current instance is equal to the specified object; otherwise, . + + The parameter is considered to be equal to the current instance under the following conditions: + + It is a value type. + Its components are of the same types as those of the current instance. + Its components are equal to those of the current instance. Equality is determined by the default object equality comparer for each component. + + + + + + Returns a value that indicates whether the current + instance is equal to a specified . + + The tuple to compare with this instance. + if the current instance is equal to the specified tuple; otherwise, . + + The parameter is considered to be equal to the current instance if each of its fields + are equal to that of the current instance, using the default comparer for that field's type. + + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + + Returns the hash code for the current instance. + + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (Item1, Item2, Item3). + If any field value is , it is represented as . + + + + + Represents a 4-tuple, or quadruple, as a value type. + + The type of the tuple's first component. + The type of the tuple's second component. + The type of the tuple's third component. + The type of the tuple's fourth component. + + + + The current instance's first component. + + + + + The current instance's second component. + + + + + The current instance's third component. + + + + + The current instance's fourth component. + + + + + Initializes a new instance of the value type. + + The value of the tuple's first component. + The value of the tuple's second component. + The value of the tuple's third component. + The value of the tuple's fourth component. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if the current instance is equal to the specified object; otherwise, . + + The parameter is considered to be equal to the current instance under the following conditions: + + It is a value type. + Its components are of the same types as those of the current instance. + Its components are equal to those of the current instance. Equality is determined by the default object equality comparer for each component. + + + + + + Returns a value that indicates whether the current + instance is equal to a specified . + + The tuple to compare with this instance. + if the current instance is equal to the specified tuple; otherwise, . + + The parameter is considered to be equal to the current instance if each of its fields + are equal to that of the current instance, using the default comparer for that field's type. + + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + + Returns the hash code for the current instance. + + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (Item1, Item2, Item3, Item4). + If any field value is , it is represented as . + + + + + Represents a 5-tuple, or quintuple, as a value type. + + The type of the tuple's first component. + The type of the tuple's second component. + The type of the tuple's third component. + The type of the tuple's fourth component. + The type of the tuple's fifth component. + + + + The current instance's first component. + + + + + The current instance's second component. + + + + + The current instance's third component. + + + + + The current instance's fourth component. + + + + + The current instance's fifth component. + + + + + Initializes a new instance of the value type. + + The value of the tuple's first component. + The value of the tuple's second component. + The value of the tuple's third component. + The value of the tuple's fourth component. + The value of the tuple's fifth component. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if the current instance is equal to the specified object; otherwise, . + + The parameter is considered to be equal to the current instance under the following conditions: + + It is a value type. + Its components are of the same types as those of the current instance. + Its components are equal to those of the current instance. Equality is determined by the default object equality comparer for each component. + + + + + + Returns a value that indicates whether the current + instance is equal to a specified . + + The tuple to compare with this instance. + if the current instance is equal to the specified tuple; otherwise, . + + The parameter is considered to be equal to the current instance if each of its fields + are equal to that of the current instance, using the default comparer for that field's type. + + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + + Returns the hash code for the current instance. + + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (Item1, Item2, Item3, Item4, Item5). + If any field value is , it is represented as . + + + + + Represents a 6-tuple, or sixtuple, as a value type. + + The type of the tuple's first component. + The type of the tuple's second component. + The type of the tuple's third component. + The type of the tuple's fourth component. + The type of the tuple's fifth component. + The type of the tuple's sixth component. + + + + The current instance's first component. + + + + + The current instance's second component. + + + + + The current instance's third component. + + + + + The current instance's fourth component. + + + + + The current instance's fifth component. + + + + + The current instance's sixth component. + + + + + Initializes a new instance of the value type. + + The value of the tuple's first component. + The value of the tuple's second component. + The value of the tuple's third component. + The value of the tuple's fourth component. + The value of the tuple's fifth component. + The value of the tuple's sixth component. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if the current instance is equal to the specified object; otherwise, . + + The parameter is considered to be equal to the current instance under the following conditions: + + It is a value type. + Its components are of the same types as those of the current instance. + Its components are equal to those of the current instance. Equality is determined by the default object equality comparer for each component. + + + + + + Returns a value that indicates whether the current + instance is equal to a specified . + + The tuple to compare with this instance. + if the current instance is equal to the specified tuple; otherwise, . + + The parameter is considered to be equal to the current instance if each of its fields + are equal to that of the current instance, using the default comparer for that field's type. + + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + + Returns the hash code for the current instance. + + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (Item1, Item2, Item3, Item4, Item5, Item6). + If any field value is , it is represented as . + + + + + Represents a 7-tuple, or sentuple, as a value type. + + The type of the tuple's first component. + The type of the tuple's second component. + The type of the tuple's third component. + The type of the tuple's fourth component. + The type of the tuple's fifth component. + The type of the tuple's sixth component. + The type of the tuple's seventh component. + + + + The current instance's first component. + + + + + The current instance's second component. + + + + + The current instance's third component. + + + + + The current instance's fourth component. + + + + + The current instance's fifth component. + + + + + The current instance's sixth component. + + + + + The current instance's seventh component. + + + + + Initializes a new instance of the value type. + + The value of the tuple's first component. + The value of the tuple's second component. + The value of the tuple's third component. + The value of the tuple's fourth component. + The value of the tuple's fifth component. + The value of the tuple's sixth component. + The value of the tuple's seventh component. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if the current instance is equal to the specified object; otherwise, . + + The parameter is considered to be equal to the current instance under the following conditions: + + It is a value type. + Its components are of the same types as those of the current instance. + Its components are equal to those of the current instance. Equality is determined by the default object equality comparer for each component. + + + + + + Returns a value that indicates whether the current + instance is equal to a specified . + + The tuple to compare with this instance. + if the current instance is equal to the specified tuple; otherwise, . + + The parameter is considered to be equal to the current instance if each of its fields + are equal to that of the current instance, using the default comparer for that field's type. + + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + + Returns the hash code for the current instance. + + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (Item1, Item2, Item3, Item4, Item5, Item6, Item7). + If any field value is , it is represented as . + + + + + Represents an 8-tuple, or octuple, as a value type. + + The type of the tuple's first component. + The type of the tuple's second component. + The type of the tuple's third component. + The type of the tuple's fourth component. + The type of the tuple's fifth component. + The type of the tuple's sixth component. + The type of the tuple's seventh component. + The type of the tuple's eighth component. + + + + The current instance's first component. + + + + + The current instance's second component. + + + + + The current instance's third component. + + + + + The current instance's fourth component. + + + + + The current instance's fifth component. + + + + + The current instance's sixth component. + + + + + The current instance's seventh component. + + + + + The current instance's eighth component. + + + + + Initializes a new instance of the value type. + + The value of the tuple's first component. + The value of the tuple's second component. + The value of the tuple's third component. + The value of the tuple's fourth component. + The value of the tuple's fifth component. + The value of the tuple's sixth component. + The value of the tuple's seventh component. + The value of the tuple's eight component. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if the current instance is equal to the specified object; otherwise, . + + The parameter is considered to be equal to the current instance under the following conditions: + + It is a value type. + Its components are of the same types as those of the current instance. + Its components are equal to those of the current instance. Equality is determined by the default object equality comparer for each component. + + + + + + Returns a value that indicates whether the current + instance is equal to a specified . + + The tuple to compare with this instance. + if the current instance is equal to the specified tuple; otherwise, . + + The parameter is considered to be equal to the current instance if each of its fields + are equal to that of the current instance, using the default comparer for that field's type. + + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + + Returns the hash code for the current instance. + + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (Item1, Item2, Item3, Item4, Item5, Item6, Item7, Rest). + If any field value is , it is represented as . + + + + diff --git a/packages/System.ValueTuple.4.5.0/lib/netstandard2.0/_._ b/packages/System.ValueTuple.4.5.0/lib/netstandard2.0/_._ new file mode 100644 index 0000000..e69de29 diff --git a/packages/System.ValueTuple.4.5.0/lib/portable-net40+sl4+win8+wp8/System.ValueTuple.xml b/packages/System.ValueTuple.4.5.0/lib/portable-net40+sl4+win8+wp8/System.ValueTuple.xml new file mode 100644 index 0000000..6dcce66 --- /dev/null +++ b/packages/System.ValueTuple.4.5.0/lib/portable-net40+sl4+win8+wp8/System.ValueTuple.xml @@ -0,0 +1,1299 @@ + + + + System.ValueTuple + + + + + Indicates that the use of on a member is meant to be treated as a tuple with element names. + + + + + Initializes a new instance of the class. + + + Specifies, in a pre-order depth-first traversal of a type's + construction, which occurrences are + meant to carry element names. + + + This constructor is meant to be used on types that contain an + instantiation of that contains + element names. For instance, if C is a generic type with + two type parameters, then a use of the constructed type C{, might be intended to + treat the first type argument as a tuple with element names and the + second as a tuple without element names. In which case, the + appropriate attribute specification should use a + transformNames value of { "name1", "name2", null, null, + null }. + + + + + Specifies, in a pre-order depth-first traversal of a type's + construction, which elements are + meant to carry element names. + + + + + Provides extension methods for instances to interop with C# tuples features (deconstruction syntax, converting from and to ). + + + + + Deconstruct a properly nested with 1 elements. + + + + + Deconstruct a properly nested with 2 elements. + + + + + Deconstruct a properly nested with 3 elements. + + + + + Deconstruct a properly nested with 4 elements. + + + + + Deconstruct a properly nested with 5 elements. + + + + + Deconstruct a properly nested with 6 elements. + + + + + Deconstruct a properly nested with 7 elements. + + + + + Deconstruct a properly nested with 8 elements. + + + + + Deconstruct a properly nested with 9 elements. + + + + + Deconstruct a properly nested with 10 elements. + + + + + Deconstruct a properly nested with 11 elements. + + + + + Deconstruct a properly nested with 12 elements. + + + + + Deconstruct a properly nested with 13 elements. + + + + + Deconstruct a properly nested with 14 elements. + + + + + Deconstruct a properly nested with 15 elements. + + + + + Deconstruct a properly nested with 16 elements. + + + + + Deconstruct a properly nested with 17 elements. + + + + + Deconstruct a properly nested with 18 elements. + + + + + Deconstruct a properly nested with 19 elements. + + + + + Deconstruct a properly nested with 20 elements. + + + + + Deconstruct a properly nested with 21 elements. + + + + + Make a properly nested from a properly nested with 1 element. + + + + + Make a properly nested from a properly nested with 2 elements. + + + + + Make a properly nested from a properly nested with 3 elements. + + + + + Make a properly nested from a properly nested with 4 elements. + + + + + Make a properly nested from a properly nested with 5 elements. + + + + + Make a properly nested from a properly nested with 6 elements. + + + + + Make a properly nested from a properly nested with 7 elements. + + + + + Make a properly nested from a properly nested with 8 elements. + + + + + Make a properly nested from a properly nested with 9 elements. + + + + + Make a properly nested from a properly nested with 10 elements. + + + + + Make a properly nested from a properly nested with 11 elements. + + + + + Make a properly nested from a properly nested with 12 elements. + + + + + Make a properly nested from a properly nested with 13 elements. + + + + + Make a properly nested from a properly nested with 14 elements. + + + + + Make a properly nested from a properly nested with 15 elements. + + + + + Make a properly nested from a properly nested with 16 elements. + + + + + Make a properly nested from a properly nested with 17 elements. + + + + + Make a properly nested from a properly nested with 18 elements. + + + + + Make a properly nested from a properly nested with 19 elements. + + + + + Make a properly nested from a properly nested with 20 elements. + + + + + Make a properly nested from a properly nested with 21 elements. + + + + + Make a properly nested from a properly nested with 1 element. + + + + + Make a properly nested from a properly nested with 2 elements. + + + + + Make a properly nested from a properly nested with 3 elements. + + + + + Make a properly nested from a properly nested with 4 elements. + + + + + Make a properly nested from a properly nested with 5 elements. + + + + + Make a properly nested from a properly nested with 6 elements. + + + + + Make a properly nested from a properly nested with 7 elements. + + + + + Make a properly nested from a properly nested with 8 elements. + + + + + Make a properly nested from a properly nested with 9 elements. + + + + + Make a properly nested from a properly nested with 10 elements. + + + + + Make a properly nested from a properly nested with 11 elements. + + + + + Make a properly nested from a properly nested with 12 elements. + + + + + Make a properly nested from a properly nested with 13 elements. + + + + + Make a properly nested from a properly nested with 14 elements. + + + + + Make a properly nested from a properly nested with 15 elements. + + + + + Make a properly nested from a properly nested with 16 elements. + + + + + Make a properly nested from a properly nested with 17 elements. + + + + + Make a properly nested from a properly nested with 18 elements. + + + + + Make a properly nested from a properly nested with 19 elements. + + + + + Make a properly nested from a properly nested with 20 elements. + + + + + Make a properly nested from a properly nested with 21 elements. + + + + + Helper so we can call some tuple methods recursively without knowing the underlying types. + + + + + The ValueTuple types (from arity 0 to 8) comprise the runtime implementation that underlies tuples in C# and struct tuples in F#. + Aside from created via language syntax, they are most easily created via the ValueTuple.Create factory methods. + The System.ValueTuple types differ from the System.Tuple types in that: + - they are structs rather than classes, + - they are mutable rather than readonly, and + - their members (such as Item1, Item2, etc) are fields rather than properties. + + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if is a . + + + Returns a value indicating whether this instance is equal to a specified value. + An instance to compare to this instance. + true if has the same value as this instance; otherwise, false. + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + Returns the hash code for this instance. + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (). + + + + Creates a new struct 0-tuple. + A 0-tuple. + + + Creates a new struct 1-tuple, or singleton. + The type of the first component of the tuple. + The value of the first component of the tuple. + A 1-tuple (singleton) whose value is (item1). + + + Creates a new struct 2-tuple, or pair. + The type of the first component of the tuple. + The type of the second component of the tuple. + The value of the first component of the tuple. + The value of the second component of the tuple. + A 2-tuple (pair) whose value is (item1, item2). + + + Creates a new struct 3-tuple, or triple. + The type of the first component of the tuple. + The type of the second component of the tuple. + The type of the third component of the tuple. + The value of the first component of the tuple. + The value of the second component of the tuple. + The value of the third component of the tuple. + A 3-tuple (triple) whose value is (item1, item2, item3). + + + Creates a new struct 4-tuple, or quadruple. + The type of the first component of the tuple. + The type of the second component of the tuple. + The type of the third component of the tuple. + The type of the fourth component of the tuple. + The value of the first component of the tuple. + The value of the second component of the tuple. + The value of the third component of the tuple. + The value of the fourth component of the tuple. + A 4-tuple (quadruple) whose value is (item1, item2, item3, item4). + + + Creates a new struct 5-tuple, or quintuple. + The type of the first component of the tuple. + The type of the second component of the tuple. + The type of the third component of the tuple. + The type of the fourth component of the tuple. + The type of the fifth component of the tuple. + The value of the first component of the tuple. + The value of the second component of the tuple. + The value of the third component of the tuple. + The value of the fourth component of the tuple. + The value of the fifth component of the tuple. + A 5-tuple (quintuple) whose value is (item1, item2, item3, item4, item5). + + + Creates a new struct 6-tuple, or sextuple. + The type of the first component of the tuple. + The type of the second component of the tuple. + The type of the third component of the tuple. + The type of the fourth component of the tuple. + The type of the fifth component of the tuple. + The type of the sixth component of the tuple. + The value of the first component of the tuple. + The value of the second component of the tuple. + The value of the third component of the tuple. + The value of the fourth component of the tuple. + The value of the fifth component of the tuple. + The value of the sixth component of the tuple. + A 6-tuple (sextuple) whose value is (item1, item2, item3, item4, item5, item6). + + + Creates a new struct 7-tuple, or septuple. + The type of the first component of the tuple. + The type of the second component of the tuple. + The type of the third component of the tuple. + The type of the fourth component of the tuple. + The type of the fifth component of the tuple. + The type of the sixth component of the tuple. + The type of the seventh component of the tuple. + The value of the first component of the tuple. + The value of the second component of the tuple. + The value of the third component of the tuple. + The value of the fourth component of the tuple. + The value of the fifth component of the tuple. + The value of the sixth component of the tuple. + The value of the seventh component of the tuple. + A 7-tuple (septuple) whose value is (item1, item2, item3, item4, item5, item6, item7). + + + Creates a new struct 8-tuple, or octuple. + The type of the first component of the tuple. + The type of the second component of the tuple. + The type of the third component of the tuple. + The type of the fourth component of the tuple. + The type of the fifth component of the tuple. + The type of the sixth component of the tuple. + The type of the seventh component of the tuple. + The type of the eighth component of the tuple. + The value of the first component of the tuple. + The value of the second component of the tuple. + The value of the third component of the tuple. + The value of the fourth component of the tuple. + The value of the fifth component of the tuple. + The value of the sixth component of the tuple. + The value of the seventh component of the tuple. + The value of the eighth component of the tuple. + An 8-tuple (octuple) whose value is (item1, item2, item3, item4, item5, item6, item7, item8). + + + Represents a 1-tuple, or singleton, as a value type. + The type of the tuple's only component. + + + + The current instance's first component. + + + + + Initializes a new instance of the value type. + + The value of the tuple's first component. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if the current instance is equal to the specified object; otherwise, . + + The parameter is considered to be equal to the current instance under the following conditions: + + It is a value type. + Its components are of the same types as those of the current instance. + Its components are equal to those of the current instance. Equality is determined by the default object equality comparer for each component. + + + + + + Returns a value that indicates whether the current + instance is equal to a specified . + + The tuple to compare with this instance. + if the current instance is equal to the specified tuple; otherwise, . + + The parameter is considered to be equal to the current instance if each of its field + is equal to that of the current instance, using the default comparer for that field's type. + + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + + Returns the hash code for the current instance. + + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (Item1), + where Item1 represents the value of . If the field is , + it is represented as . + + + + + Represents a 2-tuple, or pair, as a value type. + + The type of the tuple's first component. + The type of the tuple's second component. + + + + The current instance's first component. + + + + + The current instance's second component. + + + + + Initializes a new instance of the value type. + + The value of the tuple's first component. + The value of the tuple's second component. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if the current instance is equal to the specified object; otherwise, . + + + The parameter is considered to be equal to the current instance under the following conditions: + + It is a value type. + Its components are of the same types as those of the current instance. + Its components are equal to those of the current instance. Equality is determined by the default object equality comparer for each component. + + + + + + Returns a value that indicates whether the current instance is equal to a specified . + + The tuple to compare with this instance. + if the current instance is equal to the specified tuple; otherwise, . + + The parameter is considered to be equal to the current instance if each of its fields + are equal to that of the current instance, using the default comparer for that field's type. + + + + + Returns a value that indicates whether the current instance is equal to a specified object based on a specified comparison method. + + The object to compare with this instance. + An object that defines the method to use to evaluate whether the two objects are equal. + if the current instance is equal to the specified object; otherwise, . + + + This member is an explicit interface member implementation. It can be used only when the + instance is cast to an interface. + + The implementation is called only if other is not , + and if it can be successfully cast (in C#) or converted (in Visual Basic) to a + whose components are of the same types as those of the current instance. The IStructuralEquatable.Equals(Object, IEqualityComparer) method + first passes the values of the objects to be compared to the + implementation. If this method call returns , the method is + called again and passed the values of the two instances. + + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + + Returns the hash code for the current instance. + + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (Item1, Item2), + where Item1 and Item2 represent the values of the + and fields. If either field value is , + it is represented as . + + + + + Represents a 3-tuple, or triple, as a value type. + + The type of the tuple's first component. + The type of the tuple's second component. + The type of the tuple's third component. + + + + The current instance's first component. + + + + + The current instance's second component. + + + + + The current instance's third component. + + + + + Initializes a new instance of the value type. + + The value of the tuple's first component. + The value of the tuple's second component. + The value of the tuple's third component. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if the current instance is equal to the specified object; otherwise, . + + The parameter is considered to be equal to the current instance under the following conditions: + + It is a value type. + Its components are of the same types as those of the current instance. + Its components are equal to those of the current instance. Equality is determined by the default object equality comparer for each component. + + + + + + Returns a value that indicates whether the current + instance is equal to a specified . + + The tuple to compare with this instance. + if the current instance is equal to the specified tuple; otherwise, . + + The parameter is considered to be equal to the current instance if each of its fields + are equal to that of the current instance, using the default comparer for that field's type. + + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + + Returns the hash code for the current instance. + + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (Item1, Item2, Item3). + If any field value is , it is represented as . + + + + + Represents a 4-tuple, or quadruple, as a value type. + + The type of the tuple's first component. + The type of the tuple's second component. + The type of the tuple's third component. + The type of the tuple's fourth component. + + + + The current instance's first component. + + + + + The current instance's second component. + + + + + The current instance's third component. + + + + + The current instance's fourth component. + + + + + Initializes a new instance of the value type. + + The value of the tuple's first component. + The value of the tuple's second component. + The value of the tuple's third component. + The value of the tuple's fourth component. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if the current instance is equal to the specified object; otherwise, . + + The parameter is considered to be equal to the current instance under the following conditions: + + It is a value type. + Its components are of the same types as those of the current instance. + Its components are equal to those of the current instance. Equality is determined by the default object equality comparer for each component. + + + + + + Returns a value that indicates whether the current + instance is equal to a specified . + + The tuple to compare with this instance. + if the current instance is equal to the specified tuple; otherwise, . + + The parameter is considered to be equal to the current instance if each of its fields + are equal to that of the current instance, using the default comparer for that field's type. + + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + + Returns the hash code for the current instance. + + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (Item1, Item2, Item3, Item4). + If any field value is , it is represented as . + + + + + Represents a 5-tuple, or quintuple, as a value type. + + The type of the tuple's first component. + The type of the tuple's second component. + The type of the tuple's third component. + The type of the tuple's fourth component. + The type of the tuple's fifth component. + + + + The current instance's first component. + + + + + The current instance's second component. + + + + + The current instance's third component. + + + + + The current instance's fourth component. + + + + + The current instance's fifth component. + + + + + Initializes a new instance of the value type. + + The value of the tuple's first component. + The value of the tuple's second component. + The value of the tuple's third component. + The value of the tuple's fourth component. + The value of the tuple's fifth component. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if the current instance is equal to the specified object; otherwise, . + + The parameter is considered to be equal to the current instance under the following conditions: + + It is a value type. + Its components are of the same types as those of the current instance. + Its components are equal to those of the current instance. Equality is determined by the default object equality comparer for each component. + + + + + + Returns a value that indicates whether the current + instance is equal to a specified . + + The tuple to compare with this instance. + if the current instance is equal to the specified tuple; otherwise, . + + The parameter is considered to be equal to the current instance if each of its fields + are equal to that of the current instance, using the default comparer for that field's type. + + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + + Returns the hash code for the current instance. + + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (Item1, Item2, Item3, Item4, Item5). + If any field value is , it is represented as . + + + + + Represents a 6-tuple, or sixtuple, as a value type. + + The type of the tuple's first component. + The type of the tuple's second component. + The type of the tuple's third component. + The type of the tuple's fourth component. + The type of the tuple's fifth component. + The type of the tuple's sixth component. + + + + The current instance's first component. + + + + + The current instance's second component. + + + + + The current instance's third component. + + + + + The current instance's fourth component. + + + + + The current instance's fifth component. + + + + + The current instance's sixth component. + + + + + Initializes a new instance of the value type. + + The value of the tuple's first component. + The value of the tuple's second component. + The value of the tuple's third component. + The value of the tuple's fourth component. + The value of the tuple's fifth component. + The value of the tuple's sixth component. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if the current instance is equal to the specified object; otherwise, . + + The parameter is considered to be equal to the current instance under the following conditions: + + It is a value type. + Its components are of the same types as those of the current instance. + Its components are equal to those of the current instance. Equality is determined by the default object equality comparer for each component. + + + + + + Returns a value that indicates whether the current + instance is equal to a specified . + + The tuple to compare with this instance. + if the current instance is equal to the specified tuple; otherwise, . + + The parameter is considered to be equal to the current instance if each of its fields + are equal to that of the current instance, using the default comparer for that field's type. + + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + + Returns the hash code for the current instance. + + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (Item1, Item2, Item3, Item4, Item5, Item6). + If any field value is , it is represented as . + + + + + Represents a 7-tuple, or sentuple, as a value type. + + The type of the tuple's first component. + The type of the tuple's second component. + The type of the tuple's third component. + The type of the tuple's fourth component. + The type of the tuple's fifth component. + The type of the tuple's sixth component. + The type of the tuple's seventh component. + + + + The current instance's first component. + + + + + The current instance's second component. + + + + + The current instance's third component. + + + + + The current instance's fourth component. + + + + + The current instance's fifth component. + + + + + The current instance's sixth component. + + + + + The current instance's seventh component. + + + + + Initializes a new instance of the value type. + + The value of the tuple's first component. + The value of the tuple's second component. + The value of the tuple's third component. + The value of the tuple's fourth component. + The value of the tuple's fifth component. + The value of the tuple's sixth component. + The value of the tuple's seventh component. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if the current instance is equal to the specified object; otherwise, . + + The parameter is considered to be equal to the current instance under the following conditions: + + It is a value type. + Its components are of the same types as those of the current instance. + Its components are equal to those of the current instance. Equality is determined by the default object equality comparer for each component. + + + + + + Returns a value that indicates whether the current + instance is equal to a specified . + + The tuple to compare with this instance. + if the current instance is equal to the specified tuple; otherwise, . + + The parameter is considered to be equal to the current instance if each of its fields + are equal to that of the current instance, using the default comparer for that field's type. + + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + + Returns the hash code for the current instance. + + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (Item1, Item2, Item3, Item4, Item5, Item6, Item7). + If any field value is , it is represented as . + + + + + Represents an 8-tuple, or octuple, as a value type. + + The type of the tuple's first component. + The type of the tuple's second component. + The type of the tuple's third component. + The type of the tuple's fourth component. + The type of the tuple's fifth component. + The type of the tuple's sixth component. + The type of the tuple's seventh component. + The type of the tuple's eighth component. + + + + The current instance's first component. + + + + + The current instance's second component. + + + + + The current instance's third component. + + + + + The current instance's fourth component. + + + + + The current instance's fifth component. + + + + + The current instance's sixth component. + + + + + The current instance's seventh component. + + + + + The current instance's eighth component. + + + + + Initializes a new instance of the value type. + + The value of the tuple's first component. + The value of the tuple's second component. + The value of the tuple's third component. + The value of the tuple's fourth component. + The value of the tuple's fifth component. + The value of the tuple's sixth component. + The value of the tuple's seventh component. + The value of the tuple's eight component. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object to compare with this instance. + if the current instance is equal to the specified object; otherwise, . + + The parameter is considered to be equal to the current instance under the following conditions: + + It is a value type. + Its components are of the same types as those of the current instance. + Its components are equal to those of the current instance. Equality is determined by the default object equality comparer for each component. + + + + + + Returns a value that indicates whether the current + instance is equal to a specified . + + The tuple to compare with this instance. + if the current instance is equal to the specified tuple; otherwise, . + + The parameter is considered to be equal to the current instance if each of its fields + are equal to that of the current instance, using the default comparer for that field's type. + + + + Compares this instance to a specified instance and returns an indication of their relative values. + An instance to compare. + + A signed number indicating the relative values of this instance and . + Returns less than zero if this instance is less than , zero if this + instance is equal to , and greater than zero if this instance is greater + than . + + + + + Returns the hash code for the current instance. + + A 32-bit signed integer hash code. + + + + Returns a string that represents the value of this instance. + + The string representation of this instance. + + The string returned by this method takes the form (Item1, Item2, Item3, Item4, Item5, Item6, Item7, Rest). + If any field value is , it is represented as . + + + + diff --git a/packages/System.ValueTuple.4.5.0/lib/uap10.0.16299/_._ b/packages/System.ValueTuple.4.5.0/lib/uap10.0.16299/_._ new file mode 100644 index 0000000..e69de29 diff --git a/packages/System.ValueTuple.4.5.0/lib/xamarinios10/_._ b/packages/System.ValueTuple.4.5.0/lib/xamarinios10/_._ new file mode 100644 index 0000000..e69de29 diff --git a/packages/System.ValueTuple.4.5.0/lib/xamarinmac20/_._ b/packages/System.ValueTuple.4.5.0/lib/xamarinmac20/_._ new file mode 100644 index 0000000..e69de29 diff --git a/packages/System.ValueTuple.4.5.0/lib/xamarintvos10/_._ b/packages/System.ValueTuple.4.5.0/lib/xamarintvos10/_._ new file mode 100644 index 0000000..e69de29 diff --git a/packages/System.ValueTuple.4.5.0/lib/xamarinwatchos10/_._ b/packages/System.ValueTuple.4.5.0/lib/xamarinwatchos10/_._ new file mode 100644 index 0000000..e69de29 diff --git a/packages/System.ValueTuple.4.5.0/ref/MonoAndroid10/_._ b/packages/System.ValueTuple.4.5.0/ref/MonoAndroid10/_._ new file mode 100644 index 0000000..e69de29 diff --git a/packages/System.ValueTuple.4.5.0/ref/MonoTouch10/_._ b/packages/System.ValueTuple.4.5.0/ref/MonoTouch10/_._ new file mode 100644 index 0000000..e69de29 diff --git a/packages/System.ValueTuple.4.5.0/ref/netcoreapp2.0/_._ b/packages/System.ValueTuple.4.5.0/ref/netcoreapp2.0/_._ new file mode 100644 index 0000000..e69de29 diff --git a/packages/System.ValueTuple.4.5.0/ref/netstandard2.0/_._ b/packages/System.ValueTuple.4.5.0/ref/netstandard2.0/_._ new file mode 100644 index 0000000..e69de29 diff --git a/packages/System.ValueTuple.4.5.0/ref/uap10.0.16299/_._ b/packages/System.ValueTuple.4.5.0/ref/uap10.0.16299/_._ new file mode 100644 index 0000000..e69de29 diff --git a/packages/System.ValueTuple.4.5.0/ref/xamarinios10/_._ b/packages/System.ValueTuple.4.5.0/ref/xamarinios10/_._ new file mode 100644 index 0000000..e69de29 diff --git a/packages/System.ValueTuple.4.5.0/ref/xamarinmac20/_._ b/packages/System.ValueTuple.4.5.0/ref/xamarinmac20/_._ new file mode 100644 index 0000000..e69de29 diff --git a/packages/System.ValueTuple.4.5.0/ref/xamarintvos10/_._ b/packages/System.ValueTuple.4.5.0/ref/xamarintvos10/_._ new file mode 100644 index 0000000..e69de29 diff --git a/packages/System.ValueTuple.4.5.0/ref/xamarinwatchos10/_._ b/packages/System.ValueTuple.4.5.0/ref/xamarinwatchos10/_._ new file mode 100644 index 0000000..e69de29 diff --git a/packages/System.ValueTuple.4.5.0/useSharedDesignerContext.txt b/packages/System.ValueTuple.4.5.0/useSharedDesignerContext.txt new file mode 100644 index 0000000..e69de29 diff --git a/packages/System.ValueTuple.4.5.0/version.txt b/packages/System.ValueTuple.4.5.0/version.txt new file mode 100644 index 0000000..47004a0 --- /dev/null +++ b/packages/System.ValueTuple.4.5.0/version.txt @@ -0,0 +1 @@ +30ab651fcb4354552bd4891619a0bdd81e0ebdbf