| Start |
|---|
Empty Return BAD CODE GOOD CODE Null Conditional Operator (opens new window) |
| Uninitialized variable BAD CODE GOOD CODE EVEN BETTER CODE (Ensure proper disposal of IDisposable object more info (opens new window)) RemarksNullReferenceException is thrown whenever a variable is empty and one of its method/properties are referenced. To avoid this, be sure all variables are initialized correctly ( |
Read Article
https://develop.horje.com/learn/1434/reference