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