Current filter:
                                You should refresh the page.
                                  • Please, switch to interpolated strings when it comes to code contracts messages.
                                    Example, from:
                                    Contract.Requires(settingsService != null, "settingsService is null.");
                                    to
                                    Contract.Requires(settingsService != null, $"{nameof(settingsService)} is null.");

                                    This way the code is more robust on changes.

                                • Miha Markic - DevExpress MVP 05.11.2016

                                  Looks like interpolation won't work due to CC restrictions. But this will work:
                                  nameof(settingsService) + " is null"

                                • Andrew A (DevExpress) 05.11.2016

                                  Hi Miha,

                                  We agree that the "nameof " operator will be more useful than a constant value. We will change this Contract as you suggested in our future releases.

                                1 Solution

                                Creation Date Importance Sort by

                                Fixed: