Closed Faolan-Rad closed 3 years ago
So it's known in the future, the ?? Operator can simplify many of these checks (and is sometimes faster as it user the same value instead of possibly re-executing property checks)
Also while a value type == null compiles, it's always false. I would personally suggest == default, or finding a better way to detect a default value (such as marking the value type as nullable via ?)
@Earthmark thank you for the enlightenment
preventing null strings getting called inside imgui and added anonymous user for testing