If you're forgetting to instantiate objects then you have bigger problems to solve. This solution isn't readable, doesn't have clear intent and the out parameter is just confusing because it's not clear what kind of manipulation is happening when reading the method name. TryAdd would be better but still not clear, AddOrCreate would be one step closer but again, still confusing.
Keep it simple, initialize your objects, write clean code.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If you're forgetting to instantiate objects then you have bigger problems to solve. This solution isn't readable, doesn't have clear intent and the
out
parameter is just confusing because it's not clear what kind of manipulation is happening when reading the method name.TryAdd
would be better but still not clear,AddOrCreate
would be one step closer but again, still confusing.Keep it simple, initialize your objects, write clean code.