cleanup: Fix a ton of build warnings (cs)

All these warnings have been bothering me for a while. The work isn't done, but
this commit chops them down from ~1000 to ~600.

* AppendCollection.cs
* AppendStreamModified.cs
* BenzingaNewsStream.cs
* BenzingaNewsSymbolStateStream.cs
* BookStream.cs
* CSVSaverStream.cs
* ChartsUtils.cs
* ColumnInfo.cs
* ContractUtils.cs
* ContractUtils.cs
* DiffStream.cs
* FuturesActiveContractStream.cs
* FuzzyJoinOverTimeStream.cs
* HistoricalBarsStream.cs
* HistoricalBarsStream.cs
* InstrumentsStream.cs
* JoinOperandRowIndex.cs
* JoinRow.cs
* JoinStream.cs
* JoinTable.cs
* JoinTableSchema.cs
* LatencyStream.cs
* LeftInternalJoinStream.cs
* LightForeignJoinRow.cs
* LightForeignJoinRowList.cs
* LightLeftForeignJoinRow.cs
* LiteralStream.cs
* NLStream.cs
* NLToDSLStream.cs
* NLToIndexedFewShotPromptStream.cs
* NonIncGroupByStream.cs
* NonIncJoinBookkeeper.cs
* NonIncJoinSpec.cs
* OHLCVStream.cs
* OpenAIPromptStream.cs
* PriceStatsStream.cs
* PriceStatsStream.cs
* ProjectHelper.cs
* ProjectStream.cs
* PubSubServerStateStream.cs
* PubsubHeartbeatStream.cs
* SimpleNode.cs
* SortRow.cs
* SpatialArbStatsStream.cs
* SpatialFuturePairsStream.cs
* SpreadPerformanceEvaluator.cs
* SpreadPerformanceStream.cs
* StreamIOCommon.cs
* SuperJoinStream.cs
* TableMetaDataStream.cs
* TextWriterStream.cs
* TimeAverageStream.cs
This commit is contained in:
John Colvin committed 2025-11-19 13:57:47 -05:00
1 parent 7418f5b5a1
commit a4efaa0089
48 files changed
+610 -590

No files matched your search

@@ -1,5 +1,3 @@
using System;
namespace BCG
{
/// <summary>
@@ -9,15 +7,15 @@ namespace BCG
/// </summary>
public class SimpleNode : INode
{
public IBlueRow row;
public SimpleNode next, prev;
public IBlueRow? row;
public SimpleNode? next;
public SimpleNode? prev;
public SimpleNode (IBlueRow r)
: this (r, null, null)
{}
public SimpleNode (IBlueRow r, SimpleNode nx, SimpleNode pv)
{
public SimpleNode(IBlueRow r, SimpleNode? nx, SimpleNode? pv) {
row = r;
next = nx;
prev = pv;
@@ -25,13 +23,15 @@ namespace BCG
#region INode Members
public IBlueRow getRow (int id) {return row;}
public IBlueRow? getRow (int id) =>
row;
public IBlueRow[] getRows() {return new IBlueRow[] {row};}
public IBlueRow?[] getRows() =>
new[] { row };
public void replace (int id, IBlueRow nr) {row = nr;}
#endregion
}
}
}