Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@abatishchev
Copy link
Contributor

String.Join() instead of looping over IEnumerable<T> calls the constructor of List<T> accepting IEnumerable<T>.
According to List.cs it should be more efficient.

Because JoinUnchecked() accepts string[] the option #2 is to call ToArray() extension method

String.Join() instead of looping over IEnumerable<T> calls the constructor of List<T> accepting IEnumerable<T>.
According to https://github.com/mono/mono/blob/master/mcs/class/corlib/System.Collections.Generic/List.cs#L67 it should be more efficient.

Because JoinUnchecked() accepts string[] the option #2 is to call ToArray() extension method instead.
https://github.com/mono/mono/blob/master/mcs/class/System.Core/System.Linq/Enumerable.cs#L2886
marek-safar added a commit that referenced this pull request Dec 24, 2013
String.Join() calls List(IEnum) instead of looping
@marek-safar marek-safar merged commit 20d948f into mono:master Dec 24, 2013
@abatishchev abatishchev deleted the patch-1 branch January 22, 2014 23:29
AlexKnauth pushed a commit to AlexKnauth/mono that referenced this pull request Nov 2, 2023
…ows-runtime-on-aot

Fix COM and Windows Runtime support on UnityAot profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants