File: src\Shared\StackTrace\StackFrame\ParameterDisplayInfo.cs
Web Access
Project: src\src\Shared\test\Shared.Tests\Microsoft.AspNetCore.Shared.Tests.csproj (Microsoft.AspNetCore.Shared.Tests)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.Text;
#nullable enable
 
namespace Microsoft.Extensions.StackTrace.Sources;
 
internal sealed class ParameterDisplayInfo
{
    public string? Name { get; set; }
 
    public string? Type { get; set; }
 
    public string? Prefix { get; set; }
 
    public override string ToString()
    {
        var builder = new StringBuilder();
        if (!string.IsNullOrEmpty(Prefix))
        {
            builder
                .Append(Prefix)
                .Append(' ');
        }
 
        builder.Append(Type);
        builder.Append(' ');
        builder.Append(Name);
 
        return builder.ToString();
    }
}