// 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 sealed partial class PooledStringBuilder : IPooled
{
public static PooledDisposer<PooledStringBuilder> GetInstance(out StringBuilder instance)
{
var pooledInstance = GetInstance();
instance = pooledInstance;
return new PooledDisposer<PooledStringBuilder>(pooledInstance);
}
}
|