Skip to content

Conversation

@TimothyMakkison
Copy link

Removes unnecessary ToArray calls

Copy link
Member

@mgravell mgravell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good; I'll need to double check impact on the full TFM range (i.e. the older overloads), but: 👍


// Before we get all emitty...
var lookup = string.Join("|", names.ToArray());
var lookup = string.Join("|", names);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A "char" vs "string" can be used in Join() call.

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.

3 participants