cleanup: Fix more build warnings in DataStreamSuite

Alot more
This commit is contained in:
John Colvin committed 2026-01-11 15:15:13 -05:00
1 parent 989d103eef
commit bcd207f89e
118 files changed
+1812 -1597

No files matched your search

@@ -1,6 +1,5 @@
using System;
using System.Collections;
using BCG.Utilities;
namespace BCG
{
@@ -22,9 +21,11 @@ namespace BCG
#region IBlueRow Members
public object this [string colName] {get {return this[myHelper.schema[colName].colNo];}}
public object? this [string colName] =>
this[myHelper.schema[colName].colNo];
public object this [int index] {get {return myRow[myHelper.colMap[index]];}}
public object? this [int index] =>
myRow[myHelper.colMap[index]];
public IBlueTableSchema schema {get {return myHelper.schema;}}
@@ -36,9 +37,13 @@ namespace BCG
public IDictionaryEnumerator GetEnumerator() {return new BlueRowDictionaryEnumerator (this);}
object System.Collections.IDictionary.this[object key]
object? IDictionary.this[object key]
{
get {return key is int ? this[(int)key] : this[key as string];}
get => key switch {
int i => this[i],
string s => this[s],
_ => throw new ArgumentException("Must be int or string", nameof(key)),
};
set {throw new ApplicationException ("Is read only");}
}
@@ -58,7 +63,8 @@ namespace BCG
}
}
public void Add (object key, object value) {throw new ApplicationException ("Is read only");}
public void Add(object key, object? value) =>
throw new NotSupportedException();
public ICollection Keys {get {return myHelper.schema.columnNames;}}
@@ -78,7 +84,7 @@ namespace BCG
array.SetValue (this[ci.colNo], index ++);
}
public object SyncRoot {get {return null;}}
public object SyncRoot => this;
#endregion