Does C# have Nullable annotation's?
For example in Java
public @Nullable <T extends BaseJsonClass> T getModel(String saveKey, Class<T> type) {
Now when the developer tries to call
Object.getModel().someMethod()
The compiler will warn them that they are not checking for null.
I'm aware of the ?
mark at the end of var names in C# like someObject?
but the problem with this is that it can be tricky/annoying/JSON models when vars are being used in many places.