using System; namespace gaseous_tools { public class Common { /// /// Returns IfNullValue if the ObjectToCheck is null /// /// Any nullable object to check for null /// Any object to return if ObjectToCheck is null /// static public object ReturnValueIfNull(object? ObjectToCheck, object IfNullValue) { if (ObjectToCheck == null) { return IfNullValue; } else { return ObjectToCheck; } } } }