Skip to content

Commit ec11758

Browse files
committed
[corlib] Update exception message to match .net
1 parent 4f0fd2a commit ec11758

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mcs/class/corlib/System/Array.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ public object GetValue (int index)
354354
"Index has to be between upper and lower bound of the array."));
355355

356356
if (GetType ().GetElementType ().IsPointer)
357-
throw new NotSupportedException ("Type is not supported");
357+
throw new NotSupportedException ("Type is not supported.");
358358

359359
return GetValueImpl (index - lb);
360360
}
@@ -382,7 +382,7 @@ public void SetValue (object value, int index)
382382
"Index has to be >= lower bound and <= upper bound of the array."));
383383

384384
if (GetType ().GetElementType ().IsPointer)
385-
throw new NotSupportedException ("Type is not supported");
385+
throw new NotSupportedException ("Type is not supported.");
386386

387387
SetValueImpl (value, index - lb);
388388
}
@@ -735,7 +735,7 @@ public Object Current {
735735
get {
736736
if (_index < 0) throw new InvalidOperationException (SR.InvalidOperation_EnumNotStarted);
737737
if (_index >= _endIndex) throw new InvalidOperationException (SR.InvalidOperation_EnumEnded);
738-
if (_index == 0 && _array.GetType ().GetElementType ().IsPointer) throw new NotSupportedException ("Type is not supported");
738+
if (_index == 0 && _array.GetType ().GetElementType ().IsPointer) throw new NotSupportedException ("Type is not supported.");
739739
return _array.GetValueImpl(_index);
740740
}
741741
}

0 commit comments

Comments
 (0)