Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
4d764e615This 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;
}