Re: is null , is {}
От: Эйнсток Файр Мухосранск Странный реагент
Дата: 29.06.20 00:57
Оценка: -1
https://stackoverflow.com/questions/3982658/c-sharp-object-objs-value-is-what-is

{ and } are opening and closing braces and symbolic of the start and finish of an object. Hence an empty object with no special properties is depicted in shorthand as {}. The debugger uses this notation to help you visually distinguish between an empty object, an empty string and null.


You could possibly use myObj.GetType().GetProperties().Count == 0

Отредактировано 29.06.2020 1:00 Эйнсток Файр . Предыдущая версия . Еще …
Отредактировано 29.06.2020 0:59 Эйнсток Файр . Предыдущая версия .
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.