src/Epam.GraphQL/Diagnostics/Internals/LambdaExpressionPrinter.cs (15 lines of code) (raw):

// Copyright © 2020 EPAM Systems, Inc. All Rights Reserved. All information contained herein is, and remains the // property of EPAM Systems, Inc. and/or its suppliers and is protected by international intellectual // property law. Dissemination of this information or reproduction of this material is strictly forbidden, // unless prior written permission is obtained from EPAM Systems, Inc using System.Linq.Expressions; using Epam.GraphQL.Helpers; namespace Epam.GraphQL.Diagnostics.Internals { internal class LambdaExpressionPrinter : IPrinter<LambdaExpression?> { public static LambdaExpressionPrinter Instance { get; } = new LambdaExpressionPrinter(); public string Print(LambdaExpression? value) { return value == null ? "null" : ExpressionPrinter.Print(value, noIndent: true); } } }