We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RecordSetHeader.Add()
.Concat().ToArray(n)
1 parent 0a9983f commit f58d042Copy full SHA for f58d042
Orm/Xtensive.Orm/Orm/Rse/RecordSetHeader.cs
@@ -96,8 +96,14 @@ public RecordSetHeader Add(Column column)
96
/// <returns>The constructed header.</returns>
97
public RecordSetHeader Add(IReadOnlyList<Column> columns)
98
{
99
- var n = Columns.Count + columns.Count;
100
- var newColumns = Columns.Columns.Concat(columns).ToArray(n);
+ var newColumns = new Column[Columns.Count + columns.Count];
+ int i = 0;
101
+ foreach (var c in Columns.Columns) {
102
+ newColumns[i++] = c;
103
+ }
104
+ foreach (var c in columns) {
105
106
107
108
var newTupleDescriptor = CreateTupleDescriptor(newColumns);
109
0 commit comments