function that returns array c# code example
Example: how to return array in function c#
static string[] GetNames()
{
return new [] { "Matthew", "Mark", "Luke", "John" };
}
static string[] GetNames()
{
return new [] { "Matthew", "Mark", "Luke", "John" };
}