System.Linq.Expressions.Expression.GetResultTypeOfShift C# (CSharp) Method

GetResultTypeOfShift() private static method

private static GetResultTypeOfShift ( Type left, Type right ) : Type
left Type
right Type
return Type
        private static Type GetResultTypeOfShift(Type left, Type right)
        {
            if (!left.IsNullableType() && right.IsNullableType())
            {
                // lift the result type to Nullable<T>
                return typeof(Nullable<>).MakeGenericType(left);
            }
            return left;
        }
Expression