C# Класс GenFu.Utilities.StringBuilderExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
AppendWhen ( this sb, string value, bool predicate ) : StringBuilder

Append a string when a predicate evaluates true.

BuildFor ( this sb, int times, StringBuilder>.Func fn ) : StringBuilder

Repeats a string builder operation for n times.

BuildFor ( this sb, int times, Func fn ) : StringBuilder

Repeats a string builder operation for n times.

Описание методов

AppendWhen() публичный статический Метод

Append a string when a predicate evaluates true.
public static AppendWhen ( this sb, string value, bool predicate ) : StringBuilder
sb this
value string String to append.
predicate bool Predicate
Результат StringBuilder

BuildFor() публичный статический Метод

Repeats a string builder operation for n times.
public static BuildFor ( this sb, int times, StringBuilder>.Func fn ) : StringBuilder
sb this
times int Number of times to repeat.
fn StringBuilder>.Func A StringBuilder function.
Результат StringBuilder

BuildFor() публичный статический Метод

Repeats a string builder operation for n times.
public static BuildFor ( this sb, int times, Func fn ) : StringBuilder
sb this
times int Number of times to repeat.
fn Func A StringBuilder function with index.
Результат StringBuilder