![]() In C#6 the nameof() operator should be used to specify the name of a program element instead of a string literal as it produces code that is easier to refactor. As in a multi-threading context, it is possible for an event to be unsubscribed between the moment where it is checked to be non-null and the moment it is raised, the event must be copied to a temporary variable before the check. If the error is expected consider logging it or changing the control flow such that it is explicit.Įvents should always be checked for null before being invoked. Consider adding an Exception class to the catch statement.Īn empty catch block suppress all errors and shouldn’t be used. The list of features is documented here: Design CodeĬatch statements with no Exception as an argument is not recommended. Everyone is invited to contribute, fork, share and use the code. This is a community project, free and open source. You can find this document in the following languages ![]() Our task board, definition of done, definition of ready, etc. ![]() There you will find information on how to contribute, An analyzer library for C# and VB that uses Roslyn to produce refactorings, code analysis, and other niceties.Ĭheck the official project site on.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |