History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-34229
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Eugene Pasynkov
Reporter: Erwin Derksen
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
ReSharper

"System.FormatException: Input string was not in a correct format" not recognised

Created: 09 Jan 07 19:21   Updated: 25 Apr 07 02:38
Component/s: Code Analysis
Fix Version/s: Mirabilie Futurum
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 332


 Description  « Hide
I have the following string.Format call:
string.Format("function PageSpecificLoad() {{ ShowPanel('{0}'); }", pnlVoertuigPopup.Id)

The runtime will throw a System.FormatException (2nd '}' is missing at end of format string), while I expected R# to check string.Format strings on correctness. OK, I'm not sure to what extend R# does check the format string, but it does check on

  • missing arguments
  • superfluous arguments
  • "non-existing argument" in case of e.g.
    string.Format("function PageSpecificLoad() { ShowPanel('{0}'); }", pnlVoertuigPopup.Id)

    That's why I thought that R# does check for correctness.

If this is no current functionality, you might see this as a feature request.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.