c# return array from method 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" };
}