Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
namespace ICSharpCode.Decompiler.CSharp.Syntax;
public static class ExpressionExtensions
{
public static bool EitherIs<T>(this BinaryOperatorExpression expression) =>
expression?.Left is T || expression?.Right is T;
public static bool BothAre<T>(this BinaryOperatorExpression expression) =>
expression?.Left is T && expression.Right is T;
}
a4519e7a0This file is pinned to the selected release. Download the original to open it in your design tool.