Exception
being thrown CS-R1082Certain Exception
s are meant to be raised only by the Common Language Runtime (CLR) and should not be raised from within your code. It is recommended that you use more appropriate and suitable Exception
s instead.
throw new IndexOutOfRangeException();
throw new ArgumentOutOfRangeException();