roslyn icon indicating copy to clipboard operation
roslyn copied to clipboard

Structure guidelines wrong for class initializer, when using constructor which also uses a class initializer

Open vsfeedback opened this issue 3 years ago • 1 comments

This issue has been moved from a ticket on Developer Community.


[regression] [worked-in:17.2.6]

    private HttpClient BuildClient()
    {
        return new HttpClient(new SocketsHttpHandler()
        {
            PooledConnectionIdleTimeout = TimeSpan.FromMinutes(5),
            PooledConnectionLifetime = TimeSpan.FromMinutes(10)
        })
        {
            Timeout = TimeSpan.FromMinutes(3.5)
        };
    }

image


Original Comments

Feedback Bot on 12/12/2022, 08:13 PM:

(private comment, text removed)


Original Solutions

(no solutions)

vsfeedback avatar Dec 13 '22 17:12 vsfeedback

This was previously reported in https://github.com/dotnet/roslyn/issues/28551

Youssef1313 avatar Dec 14 '22 13:12 Youssef1313