Thursday, September 13, 2018

Index (zero based) must be greater than or equal to zero and less than the size of the argument list.

Can you see how this causes that error?

var yikes = String.Format("fail{0}");

 
 

A fix:

var yikes = String.Format("fail{0}"," no more");

No comments:

Post a Comment