diff --git a/src/libraries/System.Linq.Expressions/ref/System.Linq.Expressions.cs b/src/libraries/System.Linq.Expressions/ref/System.Linq.Expressions.cs index 09923d433d67e..bf467f927d4fa 100644 --- a/src/libraries/System.Linq.Expressions/ref/System.Linq.Expressions.cs +++ b/src/libraries/System.Linq.Expressions/ref/System.Linq.Expressions.cs @@ -834,7 +834,7 @@ internal Expression() { } public new TDelegate Compile() { throw null; } public new TDelegate Compile(bool preferInterpretation) { throw null; } public new TDelegate Compile(System.Runtime.CompilerServices.DebugInfoGenerator debugInfoGenerator) { throw null; } - public System.Linq.Expressions.Expression? Update(System.Linq.Expressions.Expression body, System.Collections.Generic.IEnumerable? parameters) { throw null; } + public System.Linq.Expressions.Expression Update(System.Linq.Expressions.Expression body, System.Collections.Generic.IEnumerable? parameters) { throw null; } } public sealed partial class GotoExpression : System.Linq.Expressions.Expression { @@ -1008,7 +1008,7 @@ internal MethodCallExpression() { } public sealed override System.Type Type { get { throw null; } } protected internal override System.Linq.Expressions.Expression Accept(System.Linq.Expressions.ExpressionVisitor visitor) { throw null; } System.Linq.Expressions.Expression System.Linq.Expressions.IArgumentProvider.GetArgument(int index) { throw null; } - public System.Linq.Expressions.MethodCallExpression Update(System.Linq.Expressions.Expression @object, System.Collections.Generic.IEnumerable? arguments) { throw null; } + public System.Linq.Expressions.MethodCallExpression Update(System.Linq.Expressions.Expression? @object, System.Collections.Generic.IEnumerable? arguments) { throw null; } } public partial class NewArrayExpression : System.Linq.Expressions.Expression { diff --git a/src/libraries/System.Linq.Expressions/src/System/Linq/Expressions/LambdaExpression.cs b/src/libraries/System.Linq.Expressions/src/System/Linq/Expressions/LambdaExpression.cs index 30ccac84af718..8f50c40fd7d3a 100644 --- a/src/libraries/System.Linq.Expressions/src/System/Linq/Expressions/LambdaExpression.cs +++ b/src/libraries/System.Linq.Expressions/src/System/Linq/Expressions/LambdaExpression.cs @@ -219,7 +219,7 @@ internal Expression(Expression body) /// The property of the result. /// The property of the result. /// This expression if no children changed, or an expression with the updated children. - public Expression? Update(Expression body, IEnumerable? parameters) + public Expression Update(Expression body, IEnumerable? parameters) { if (body == Body) { diff --git a/src/libraries/System.Linq.Expressions/src/System/Linq/Expressions/MethodCallExpression.cs b/src/libraries/System.Linq.Expressions/src/System/Linq/Expressions/MethodCallExpression.cs index 9217c5efbf98c..05155a1646c8a 100644 --- a/src/libraries/System.Linq.Expressions/src/System/Linq/Expressions/MethodCallExpression.cs +++ b/src/libraries/System.Linq.Expressions/src/System/Linq/Expressions/MethodCallExpression.cs @@ -59,7 +59,7 @@ internal MethodCallExpression(MethodInfo method) /// The property of the result. /// The property of the result. /// This expression if no children changed, or an expression with the updated children. - public MethodCallExpression Update(Expression @object, IEnumerable? arguments) + public MethodCallExpression Update(Expression? @object, IEnumerable? arguments) { if (@object == Object) {