If a member of an array is kept being referenced, the whole array will not be garbage collected?
for example, a method:
void ParseUtility(string strInput, out string header)
{
header = "";
string[] parsed = strInput.Split(',');
if ((parsed != null) && (parsed.Length > 0))
{
header = parsed[0];
}
return;
}
when returning from this method, the whole string array 'parsed' will be kept as long as 'header' is being used?