This is a migrated thread and some comments may be shown as answers.

Suggestion: string.Format warining

1 Answer 55 Views
Code Analysis
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
miksh
Top achievements
Rank 1
Iron
miksh asked on 14 Jan 2011, 09:11 PM

It would great if JustCode warns about not matching number of parameters in string.Format when the formatting template is an explicit string. E.g.

string.Format("The only one parameter {0} is expected.", param1, param2);

1 Answer, 1 is accepted

Sort by
0
Deyan Varchev
Telerik team
answered on 03 Feb 2011, 10:36 AM
Hello Michael,

 Thanks for sending this suggestion. It's a great idea and we'll definitely consider implementing it in the near future. I've granted you some Telerik points to compensate you for the efforts.

Best wishes,
Deyan
the Telerik team
Browse the videos here>> to help you get started with JustCode
Tags
Code Analysis
Asked by
miksh
Top achievements
Rank 1
Iron
Answers by
Deyan Varchev
Telerik team
Share this question
or