• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

loresoft / EntityFrameworkCore.Generator / 15460811637

05 Jun 2025 07:12AM CUT coverage: 54.917%. Remained the same
15460811637

Pull #669

github

web-flow
Merge 7e40b6960 into b2ad58745
Pull Request #669: Bump the azure group with 3 updates

643 of 1333 branches covered (48.24%)

Branch coverage included in aggregate %.

1881 of 3263 relevant lines covered (57.65%)

61.27 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/EntityFrameworkCore.Generator.Core/Extensions/EnumerableExtensions.cs
1
namespace EntityFrameworkCore.Generator.Extensions;
2

3
/// <summary>
4
/// Provides extension methods for <see cref="IEnumerable{T}"/> to assist with string formatting and conversion.
5
/// </summary>
6
public static partial class EnumerableExtensions
7
{
8
    /// <summary>
9
    /// Concatenates the members of a sequence, using the specified delimiter between each member, and returns the resulting string.
10
    /// </summary>
11
    /// <typeparam name="T">
12
    /// The type of the elements in the sequence.
13
    /// </typeparam>
14
    /// <param name="values">
15
    /// The sequence of values to concatenate. Each value will be converted to a string using its <c>ToString()</c> method.
16
    /// </param>
17
    /// <param name="delimiter">
18
    /// The string to use as a delimiter. If <c>null</c>, a comma (",") is used by default.
19
    /// </param>
20
    /// <returns>
21
    /// A string that consists of the elements in <paramref name="values"/> delimited by the <paramref name="delimiter"/> string.
22
    /// If <paramref name="values"/> is empty, returns <see cref="string.Empty"/>.
23
    /// </returns>
24
    public static string ToDelimitedString<T>(this IEnumerable<T?> values, string? delimiter = ",")
25
        => string.Join(delimiter ?? ",", values);
×
26

27
    /// <summary>
28
    /// Concatenates the members of a sequence of strings, using the specified delimiter between each member, and returns the resulting string.
29
    /// </summary>
30
    /// <param name="values">
31
    /// The sequence of string values to concatenate. <c>null</c> values are treated as empty strings.
32
    /// </param>
33
    /// <param name="delimiter">
34
    /// The string to use as a delimiter. If <c>null</c>, a comma (",") is used by default.
35
    /// </param>
36
    /// <returns>
37
    /// A string that consists of the elements in <paramref name="values"/> delimited by the <paramref name="delimiter"/> string.
38
    /// If <paramref name="values"/> is empty, returns <see cref="string.Empty"/>.
39
    /// </returns>
40
    public static string ToDelimitedString(this IEnumerable<string?> values, string? delimiter = ",")
41
        => string.Join(delimiter ?? ",", values);
×
42
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc