Current filter:
                                You should refresh the page.
                                  • When adding a throw exceptions contract for an item the template still embeds the name of the item as a string instead of using the new nameof feature.

                                    Also the error strings in the other contract types have the item embedded in them. This would be a good place to use string interpolation.

                                • Alex B.G. (DevExpress) 06.23.2015

                                  Hi Cameron,

                                  Thank you for your report. We have discussed your note and completely agree with you that these changes make sense in the latest C# and Visual Basic versions. I have passed this thread to our developers so they can introduce these changes.

                                1 Solution

                                Creation Date Importance Sort by


                                We have implemented this functionality and will include it in an upcoming release. The final release date has not been set, but once it is published we will send you an automatic notification.
                                • Cameron MacFarland 08.25.2015

                                  1.0.4 now uses nameof, which is nice, but the message string still contains the item name as a string. For example:
                                  throw new ArgumentNullException(nameof(item), "item is null.");
                                  could become this:
                                  throw new ArgumentNullException(nameof(item), $"{nameof(item)} is null.");

                                • Alex X (DevExpress) 08.26.2015

                                  Hi, I created a new ticket on your behalf ("Throw Exception" Contract should use the "nameof" syntax within the exception message string). You are welcome to continue the discussion of this problem within that thread.