cleanup: Enable nullable ref types in IBlueRowCollection.cs

This commit is contained in:
John Colvin committed 2025-11-19 14:44:55 -05:00
1 parent 71bd231a4a
commit d7d3c43302
1 file changed
+3 -2
@@ -1,3 +1,4 @@
#nullable enable
using bts.collections;
using System;
@@ -17,7 +18,7 @@ namespace BCG
new IBlueRow this[int id] { get; }
IBlueTableSchema schema { get; }
bool containsID(int id);
IList<object> GetColumn(int index) =>
IList<object?> GetColumn(int index) =>
this.WrapSelector(r => r[index], null);
IBlueRow GetRow(int index);
@@ -57,7 +58,7 @@ namespace BCG
}
public static class BlueRowCollectionExtensions {
public static IList<object> GetColumn(this IBlueRowCollection rows, string colName) {
public static IList<object?> GetColumn(this IBlueRowCollection rows, string colName) {
var idx = Array.IndexOf(rows.schema.columnNames, colName);
if (idx == -1) {
throw new KeyNotFoundException();