Exemplo n.º 1
0
        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());
        }
Exemplo n.º 2
0
 public static string WarewolfAtomToStringNullAsNothing(DataStorage.WarewolfAtom a) => a == null ? null : (a.IsNothing ? null : a.ToString());
Exemplo n.º 3
0
 public static string WarewolfAtomToString(DataStorage.WarewolfAtom a) => a?.ToString() ?? string.Empty;