Changes between Version 3 and Version 4 of Documentation/DevelopmentCenter/BestPractices
- Timestamp:
- 12/07/14 18:27:40 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/DevelopmentCenter/BestPractices
v3 v4 2 2 * use Environment.!NewLine instead of the string constant "\n" 3 3 * use Path.Combine() instead of string concatenation (with \ or /) to combine directory and file names 4 * use String.Join() instead of concatenating your strings manually 4 5 * throw and catch specific exceptions, don't catch generic exceptions try { ... } catch(Exception ex) {} 5 6 * use a finally block to make sure that the state of the program is consistent even when Exceptions are thrown