Show / Hide Table of Contents

    StringExtensions.FillA(this string chars, int? n) Method

    .NET Standard 2.x

    Builds a string of the specified length in bytes by repeating the specified characters until the result string is long enough.

    Namespace: PowerScript.Bridge

    Assembly: PowerScript.Bridge.dll

    Syntax

    public static string FillA(this string chars, int? n);
    

    Parameters

    str System.String

    The string whose value is repeated to fill the return string.

    n System.Int32

    An int specifying the number of bytes in the return string.

    Returns

    System.String

    Returns a string n bytes long filled with the characters in the argument chars. If the argument chars has more than n bytes, the first n bytes of chars are used to fill the return string. If the argument chars has fewer than n bytes, the characters in chars are repeated until the return string has n bytes. If any argument's value is null, FillA returns null.

    Examples

    Coming soon.

    Applies to

    .NET Standard

    2.x

    Back to top Generated by Appeon