refactor: Move a few low-level DataStream types to DataStreamCore

So the lex/yacc generators can reference them
This commit is contained in:
John Colvin committed 2023-09-29 13:10:49 -04:00
1 parent d1f5ae86fd
commit ac1ede5986
10 files changed
+6 -30

No files matched your search

@@ -1,3 +1,4 @@
#nullable enable
using System;
using System.Collections;
@@ -21,18 +22,18 @@ namespace BCG
/// a sizeable time, eg for a table with 20000 rows and a schema of 20 columns, we will save about
/// half a million type checkings
/// </summary>
object this[int index] {get;}
object this[string colName] {get;}
object? this[int index] {get;}
object? this[string colName] {get;}
}
namespace Extensions
{
public static class IBlueRowExtensions
{
public static bool isDBNull(this object val)
public static bool isDBNull(this object? val)
{
return (val == null || val == DBNull.Value);
}
public static bool isNotDBNull(this object val)
public static bool isNotDBNull(this object? val)
{
return (val != null && val != DBNull.Value);
}