private FetchString ( [ array, int index ) : string | ||
array | [ | |
index | int | |
return | string |
internal string FetchString([NotNull] string[] array, int index)
{
if (array == null)
{
throw new ArgumentNullException(nameof(array));
}
if (index > array.Length - 1 || index < 0)
{
ThrowIndexOutOfRangeException(array, index);
}
return array[index].Trim();
}