6 references to ToArrayAndFree
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (6)
src\ExpressionEvaluator\Core\Source\ExpressionCompiler\CustomTypeInfo.cs (2)
115return new ReadOnlyCollection<byte>(builder.ToArrayAndFree()); 196return new ReadOnlyCollection<string?>(builder.ToArrayAndFree());
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\MemberExpansion.cs (1)
120favoritesExpansion = new MemberExpansion(favoritesMembers.ToArrayAndFree(), customTypeInfoMap, containsFavorites: true);
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.Values.cs (1)
161GetTupleExpression(values.ToArrayAndFree()),
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\CustomTypeInfoTypeArgumentMap.cs (1)
193return startsBuilder.ToArrayAndFree();
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeHelpers.cs (1)
712return typeDefinition.MakeGenericType(builder.ToArrayAndFree());