refactor: included checkifnull function, added sql schema for the signature database

This commit is contained in:
Michael Green
2023-02-26 23:48:27 +11:00
parent c9e55c03f8
commit e9b7e146be
4 changed files with 207 additions and 212 deletions

24
gaseous-tools/Common.cs Normal file
View File

@@ -0,0 +1,24 @@
using System;
namespace gaseous_tools
{
public class Common
{
/// <summary>
/// Returns IfNullValue if the ObjectToCheck is null
/// </summary>
/// <param name="ObjectToCheck">Any nullable object to check for null</param>
/// <param name="IfNullValue">Any object to return if ObjectToCheck is null</param>
/// <returns></returns>
static public object ReturnValueIfNull(object? ObjectToCheck, object IfNullValue)
{
if (ObjectToCheck == null)
{
return IfNullValue;
} else
{
return ObjectToCheck;
}
}
}
}