public static string WarewolfAtomToStringErrorIfNull(DataStorage.WarewolfAtom a) { if (a == null) { return(string.Empty); } if (a.IsNothing) { throw new NullValueInVariableException(ErrorResource.VariableIsNull, string.Empty); } return(a.ToString()); }
public static string WarewolfAtomToStringNullAsNothing(DataStorage.WarewolfAtom a) => a == null ? null : (a.IsNothing ? null : a.ToString());
public static string WarewolfAtomToString(DataStorage.WarewolfAtom a) => a?.ToString() ?? string.Empty;