От: | Sinclair | https://github.com/evilguest/ | |
Дата: | 26.10.23 16:31 | ||
Оценка: | 6 (1) |
BE>if (stage() is { } stages)
BE>
BE>stage возвращает List<Stage>. Stages имеет этот же тип.To check if the string s is non-null, you can write any of the following forms
if (s is object o) ... // o is of type object if (s is string x) ... // x is of type string if (s is {} x) ... // x is of type string if (s is {}) ...