Home > Net >  Abnormal System. ArgumentOutOfRangeException "(located in mscorlib. DLL)
Abnormal System. ArgumentOutOfRangeException "(located in mscorlib. DLL)

Time:05-20


This why System. ArgumentOutOfRangeException "(located in mscorlib. DLL) this abnormal

CodePudding user response:

Index overflow, you I starting from 0, i<=X_List. Count, suppose I X_List content for {1, 2, 3}, starting from 0, the end is i<=3, at that time you take X_List [3], the index will overflow, because X_List index values can only get to 2, and you still Count + 1

CodePudding user response:

Type I out beyond index for certain, you have a look

CodePudding user response:

Index overflow, traversal, I can only count or less, can't + 1, maximum coordinates is count

CodePudding user response:

Most of overflow, x_list length and the value of the I

CodePudding user response:

I beyond index mean X_List is not so long?

CodePudding user response:

reference 5 floor A_A_A_V_A_A_A reply:
I beyond index mean X_List is not so long?
is your writing problems, X_List [n] value, n maximum for X_List. Count - 1, and your code, through the subscript value, clear overflow,

CodePudding user response:


This exception is why ah

CodePudding user response:

The end of the List I subscript of an element is the Count - 1 you again when I reach the Count - 1] I + 1] certainly will overflow
  •  Tags:  
  • C#
  • Related