File: src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledStringBuilder.cs
Web Access
Project: src\src\Workspaces\Core\Portable\Microsoft.CodeAnalysis.Workspaces.csproj (Microsoft.CodeAnalysis.Workspaces)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
 
using System.Text;
 
namespace Microsoft.CodeAnalysis.PooledObjects;
 
internal partial class PooledStringBuilder : IPooled
{
    public static PooledDisposer<PooledStringBuilder> GetInstance(out StringBuilder instance)
    {
        var pooledInstance = GetInstance();
        instance = pooledInstance;
        return new PooledDisposer<PooledStringBuilder>(pooledInstance);
    }
}