Published
- 1 min read
Indices in C#
The solution for this is noted below
Indices in C#
Solution
public class IndexExamples
{
public static string GetFirst(string[] names)
{
var index = new Index(0);
return names[index];
}
public static string GetLastMethod1(string[] names)
{
var index = new Index(1, true);
return names[index];
}
}
Try other methods by searching on the site. That is if this doesn’t work