Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{
using System;
using System.Collections.Generic;
using System.Linq;

public class ActionTypeOptions : OptionsBase
{
Expand Down Expand Up @@ -693,7 +694,7 @@ public JoinClass(string option) : base(option)

foreach (var part in secondParts)
{
if (UInt32.TryParse(parts[1], out uint v))
if (UInt32.TryParse(part, out uint v))
{
pids.Add(v);
}
Expand Down Expand Up @@ -1049,15 +1050,20 @@ public WhereClass(string option) : base(option)
{
string[] parts = option.Split(':');

if (parts.Length != 2)
switch (parts.Length)
{
return;
case 2:
Value = parts[1];
break;
case 3 when String.Equals(parts[1], "ID", StringComparison.OrdinalIgnoreCase) && UInt32.TryParse(parts[2], out uint id):
Pid = id;
break;
}

Value = parts[1];
}

public string Value { get; }
public string Value { get; set; }

public uint? Pid { get; set; }
}
}
}
Loading
Loading