От: | Эйнсток Файр | Странный реагент | |
Дата: | 29.06.20 00:57 | ||
Оценка: | -1 |
{ 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