-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #24
- Loading branch information
Showing
9 changed files
with
194 additions
and
1 deletion.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...ou.Polyfill.Editor/M;System.Text.StringBuilder.AppendJoin(System.Char,System.Object[]).cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.Text; | ||
|
||
static partial class PolyfillExtensions | ||
{ | ||
public static StringBuilder AppendJoin(this StringBuilder target, char separator, params object?[] values) | ||
{ | ||
var first = true; | ||
foreach (var value in values) | ||
{ | ||
if (!first) | ||
{ | ||
target.Append(separator); | ||
} | ||
|
||
target.Append(value); | ||
first = false; | ||
} | ||
|
||
return target; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...ou.Polyfill.Editor/M;System.Text.StringBuilder.AppendJoin(System.Char,System.String[]).cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.Text; | ||
|
||
static partial class PolyfillExtensions | ||
{ | ||
public static StringBuilder AppendJoin(this StringBuilder target, char separator, params string?[] values) | ||
{ | ||
var first = true; | ||
foreach (var value in values) | ||
{ | ||
if (!first) | ||
{ | ||
target.Append(separator); | ||
} | ||
|
||
target.Append(value); | ||
first = false; | ||
} | ||
|
||
return target; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
....Polyfill.Editor/M;System.Text.StringBuilder.AppendJoin(System.String,System.Object[]).cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.Text; | ||
|
||
static partial class PolyfillExtensions | ||
{ | ||
public static StringBuilder AppendJoin(this StringBuilder target, string? separator, params object?[] values) | ||
{ | ||
var first = true; | ||
foreach (var value in values) | ||
{ | ||
if (!first) | ||
{ | ||
target.Append(separator); | ||
} | ||
|
||
target.Append(value); | ||
first = false; | ||
} | ||
|
||
return target; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
....Polyfill.Editor/M;System.Text.StringBuilder.AppendJoin(System.String,System.String[]).cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.Text; | ||
|
||
static partial class PolyfillExtensions | ||
{ | ||
public static StringBuilder AppendJoin(this StringBuilder target, string? separator, params string?[] values) | ||
{ | ||
var first = true; | ||
foreach (var value in values) | ||
{ | ||
if (!first) | ||
{ | ||
target.Append(separator); | ||
} | ||
|
||
target.Append(value); | ||
first = false; | ||
} | ||
|
||
return target; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...t.StringBuilder.AppendJoin``1(System.Char,System.Collections.Generic.IEnumerable{``0}).cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
static partial class PolyfillExtensions | ||
{ | ||
public static StringBuilder AppendJoin<T>(this StringBuilder target, char separator, IEnumerable<T> values) | ||
{ | ||
var first = true; | ||
foreach (var value in values) | ||
{ | ||
if (!first) | ||
{ | ||
target.Append(separator); | ||
} | ||
|
||
target.Append(value); | ||
first = false; | ||
} | ||
|
||
return target; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...StringBuilder.AppendJoin``1(System.String,System.Collections.Generic.IEnumerable{``0}).cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
static partial class PolyfillExtensions | ||
{ | ||
public static StringBuilder AppendJoin<T>(this StringBuilder target, string? separator, IEnumerable<T> values) | ||
{ | ||
var first = true; | ||
foreach (var value in values) | ||
{ | ||
if (!first) | ||
{ | ||
target.Append(separator); | ||
} | ||
|
||
target.Append(value); | ||
first = false; | ||
} | ||
|
||
return target; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters