summaryrefslogtreecommitdiff
path: root/src/System.Private.CoreLib/shared/System/Globalization/DateTimeFormat.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/Globalization/DateTimeFormat.cs')
-rw-r--r--src/System.Private.CoreLib/shared/System/Globalization/DateTimeFormat.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Globalization/DateTimeFormat.cs b/src/System.Private.CoreLib/shared/System/Globalization/DateTimeFormat.cs
index ea7387589c..61143fecfd 100644
--- a/src/System.Private.CoreLib/shared/System/Globalization/DateTimeFormat.cs
+++ b/src/System.Private.CoreLib/shared/System/Globalization/DateTimeFormat.cs
@@ -1391,9 +1391,8 @@ namespace System
results.Add(strings[j]);
}
}
- string[] value = new string[results.Count];
- results.CopyTo(0, value, 0, results.Count);
- return (value);
+
+ return results.ToArray();
}
// This is a placeholder for an MDA to detect when the user is using a