Description
Library/API/IoT binding
nanoFramework.CoreLibrary
Visual Studio version
No response
.NET nanoFramework extension version
No response
Target name(s)
No response
Firmware version
No response
Device capabilities
No response
Description
If the source string is string.Empty
an ArgumentOutOfRangeException
is thrown
How to reproduce
No response
Expected behaviour
-1 should always be returned if the input is string.Empty (docs)
Screenshots
No response
Sample project or code
var emptyString = string.Empty;
var lastIndexOf = emptyString.LastIndexOf('.');
Aditional information
No response