SuperLinq SuperLinq
SuperLinq SuperLinq
DocFX + Singulink = ♥

Search Results for

    Method ToDelimitedString

    ToDelimitedString<TSource>(IEnumerable<TSource>, string)

    Creates a delimited string from a sequence of values and a given delimiter.

    Declaration
    public static string ToDelimitedString<TSource>(this IEnumerable<TSource> source, string delimiter)
    Parameters
    Type Name Description
    IEnumerable<TSource> source

    The sequence of items to delimit. Each is converted to a string using the simple ToString() conversion.

    string delimiter

    The delimiter to inject between elements.

    Returns
    Type Description
    string

    A string that consists of the elements in source delimited by delimiter. If the source sequence is empty, the method returns an empty string.

    Type Parameters
    Name Description
    TSource

    Type of element in the source sequence

    Remarks

    This operator uses immediate execution and effectively buffers the sequence.

    Exceptions
    Type Condition
    ArgumentNullException

    source or delimiter is null.

    ToDelimitedString(IEnumerable<bool>, string)

    Creates a delimited string from a sequence of values and a given delimiter.

    Declaration
    public static string ToDelimitedString(this IEnumerable<bool> source, string delimiter)
    Parameters
    Type Name Description
    IEnumerable<bool> source

    The sequence of items to delimit. Each is converted to a string using the simple ToString() conversion.

    string delimiter

    The delimiter to inject between elements.

    Returns
    Type Description
    string

    A string that consists of the elements in source delimited by delimiter. If the source sequence is empty, the method returns an empty string.

    Remarks

    This operator uses immediate execution and effectively buffers the sequence.

    Exceptions
    Type Condition
    ArgumentNullException

    source or delimiter is null.

    ToDelimitedString(IEnumerable<byte>, string)

    Creates a delimited string from a sequence of values and a given delimiter.

    Declaration
    public static string ToDelimitedString(this IEnumerable<byte> source, string delimiter)
    Parameters
    Type Name Description
    IEnumerable<byte> source

    The sequence of items to delimit. Each is converted to a string using the simple ToString() conversion.

    string delimiter

    The delimiter to inject between elements.

    Returns
    Type Description
    string

    A string that consists of the elements in source delimited by delimiter. If the source sequence is empty, the method returns an empty string.

    Remarks

    This operator uses immediate execution and effectively buffers the sequence.

    Exceptions
    Type Condition
    ArgumentNullException

    source or delimiter is null.

    ToDelimitedString(IEnumerable<char>, string)

    Creates a delimited string from a sequence of values and a given delimiter.

    Declaration
    public static string ToDelimitedString(this IEnumerable<char> source, string delimiter)
    Parameters
    Type Name Description
    IEnumerable<char> source

    The sequence of items to delimit. Each is converted to a string using the simple ToString() conversion.

    string delimiter

    The delimiter to inject between elements.

    Returns
    Type Description
    string

    A string that consists of the elements in source delimited by delimiter. If the source sequence is empty, the method returns an empty string.

    Remarks

    This operator uses immediate execution and effectively buffers the sequence.

    Exceptions
    Type Condition
    ArgumentNullException

    source or delimiter is null.

    ToDelimitedString(IEnumerable<decimal>, string)

    Creates a delimited string from a sequence of values and a given delimiter.

    Declaration
    public static string ToDelimitedString(this IEnumerable<decimal> source, string delimiter)
    Parameters
    Type Name Description
    IEnumerable<decimal> source

    The sequence of items to delimit. Each is converted to a string using the simple ToString() conversion.

    string delimiter

    The delimiter to inject between elements.

    Returns
    Type Description
    string

    A string that consists of the elements in source delimited by delimiter. If the source sequence is empty, the method returns an empty string.

    Remarks

    This operator uses immediate execution and effectively buffers the sequence.

    Exceptions
    Type Condition
    ArgumentNullException

    source or delimiter is null.

    ToDelimitedString(IEnumerable<double>, string)

    Creates a delimited string from a sequence of values and a given delimiter.

    Declaration
    public static string ToDelimitedString(this IEnumerable<double> source, string delimiter)
    Parameters
    Type Name Description
    IEnumerable<double> source

    The sequence of items to delimit. Each is converted to a string using the simple ToString() conversion.

    string delimiter

    The delimiter to inject between elements.

    Returns
    Type Description
    string

    A string that consists of the elements in source delimited by delimiter. If the source sequence is empty, the method returns an empty string.

    Remarks

    This operator uses immediate execution and effectively buffers the sequence.

    Exceptions
    Type Condition
    ArgumentNullException

    source or delimiter is null.

    ToDelimitedString(IEnumerable<short>, string)

    Creates a delimited string from a sequence of values and a given delimiter.

    Declaration
    public static string ToDelimitedString(this IEnumerable<short> source, string delimiter)
    Parameters
    Type Name Description
    IEnumerable<short> source

    The sequence of items to delimit. Each is converted to a string using the simple ToString() conversion.

    string delimiter

    The delimiter to inject between elements.

    Returns
    Type Description
    string

    A string that consists of the elements in source delimited by delimiter. If the source sequence is empty, the method returns an empty string.

    Remarks

    This operator uses immediate execution and effectively buffers the sequence.

    Exceptions
    Type Condition
    ArgumentNullException

    source or delimiter is null.

    ToDelimitedString(IEnumerable<int>, string)

    Creates a delimited string from a sequence of values and a given delimiter.

    Declaration
    public static string ToDelimitedString(this IEnumerable<int> source, string delimiter)
    Parameters
    Type Name Description
    IEnumerable<int> source

    The sequence of items to delimit. Each is converted to a string using the simple ToString() conversion.

    string delimiter

    The delimiter to inject between elements.

    Returns
    Type Description
    string

    A string that consists of the elements in source delimited by delimiter. If the source sequence is empty, the method returns an empty string.

    Remarks

    This operator uses immediate execution and effectively buffers the sequence.

    Exceptions
    Type Condition
    ArgumentNullException

    source or delimiter is null.

    ToDelimitedString(IEnumerable<long>, string)

    Creates a delimited string from a sequence of values and a given delimiter.

    Declaration
    public static string ToDelimitedString(this IEnumerable<long> source, string delimiter)
    Parameters
    Type Name Description
    IEnumerable<long> source

    The sequence of items to delimit. Each is converted to a string using the simple ToString() conversion.

    string delimiter

    The delimiter to inject between elements.

    Returns
    Type Description
    string

    A string that consists of the elements in source delimited by delimiter. If the source sequence is empty, the method returns an empty string.

    Remarks

    This operator uses immediate execution and effectively buffers the sequence.

    Exceptions
    Type Condition
    ArgumentNullException

    source or delimiter is null.

    ToDelimitedString(IEnumerable<sbyte>, string)

    Creates a delimited string from a sequence of values and a given delimiter.

    Declaration
    public static string ToDelimitedString(this IEnumerable<sbyte> source, string delimiter)
    Parameters
    Type Name Description
    IEnumerable<sbyte> source

    The sequence of items to delimit. Each is converted to a string using the simple ToString() conversion.

    string delimiter

    The delimiter to inject between elements.

    Returns
    Type Description
    string

    A string that consists of the elements in source delimited by delimiter. If the source sequence is empty, the method returns an empty string.

    Remarks

    This operator uses immediate execution and effectively buffers the sequence.

    Exceptions
    Type Condition
    ArgumentNullException

    source or delimiter is null.

    ToDelimitedString(IEnumerable<float>, string)

    Creates a delimited string from a sequence of values and a given delimiter.

    Declaration
    public static string ToDelimitedString(this IEnumerable<float> source, string delimiter)
    Parameters
    Type Name Description
    IEnumerable<float> source

    The sequence of items to delimit. Each is converted to a string using the simple ToString() conversion.

    string delimiter

    The delimiter to inject between elements.

    Returns
    Type Description
    string

    A string that consists of the elements in source delimited by delimiter. If the source sequence is empty, the method returns an empty string.

    Remarks

    This operator uses immediate execution and effectively buffers the sequence.

    Exceptions
    Type Condition
    ArgumentNullException

    source or delimiter is null.

    ToDelimitedString(IEnumerable<string>, string)

    Creates a delimited string from a sequence of values and a given delimiter.

    Declaration
    public static string ToDelimitedString(this IEnumerable<string> source, string delimiter)
    Parameters
    Type Name Description
    IEnumerable<string> source

    The sequence of items to delimit. Each is converted to a string using the simple ToString() conversion.

    string delimiter

    The delimiter to inject between elements.

    Returns
    Type Description
    string

    A string that consists of the elements in source delimited by delimiter. If the source sequence is empty, the method returns an empty string.

    Remarks

    This operator uses immediate execution and effectively buffers the sequence.

    Exceptions
    Type Condition
    ArgumentNullException

    source or delimiter is null.

    ToDelimitedString(IEnumerable<ushort>, string)

    Creates a delimited string from a sequence of values and a given delimiter.

    Declaration
    public static string ToDelimitedString(this IEnumerable<ushort> source, string delimiter)
    Parameters
    Type Name Description
    IEnumerable<ushort> source

    The sequence of items to delimit. Each is converted to a string using the simple ToString() conversion.

    string delimiter

    The delimiter to inject between elements.

    Returns
    Type Description
    string

    A string that consists of the elements in source delimited by delimiter. If the source sequence is empty, the method returns an empty string.

    Remarks

    This operator uses immediate execution and effectively buffers the sequence.

    Exceptions
    Type Condition
    ArgumentNullException

    source or delimiter is null.

    ToDelimitedString(IEnumerable<uint>, string)

    Creates a delimited string from a sequence of values and a given delimiter.

    Declaration
    public static string ToDelimitedString(this IEnumerable<uint> source, string delimiter)
    Parameters
    Type Name Description
    IEnumerable<uint> source

    The sequence of items to delimit. Each is converted to a string using the simple ToString() conversion.

    string delimiter

    The delimiter to inject between elements.

    Returns
    Type Description
    string

    A string that consists of the elements in source delimited by delimiter. If the source sequence is empty, the method returns an empty string.

    Remarks

    This operator uses immediate execution and effectively buffers the sequence.

    Exceptions
    Type Condition
    ArgumentNullException

    source or delimiter is null.

    ToDelimitedString(IEnumerable<ulong>, string)

    Creates a delimited string from a sequence of values and a given delimiter.

    Declaration
    public static string ToDelimitedString(this IEnumerable<ulong> source, string delimiter)
    Parameters
    Type Name Description
    IEnumerable<ulong> source

    The sequence of items to delimit. Each is converted to a string using the simple ToString() conversion.

    string delimiter

    The delimiter to inject between elements.

    Returns
    Type Description
    string

    A string that consists of the elements in source delimited by delimiter. If the source sequence is empty, the method returns an empty string.

    Remarks

    This operator uses immediate execution and effectively buffers the sequence.

    Exceptions
    Type Condition
    ArgumentNullException

    source or delimiter is null.

    © SuperLinq Authors. All rights reserved.