C# 클래스 GenFu.Utilities.StringBuilderExtensions

파일 보기 프로젝트 열기: MisterJames/GenFu

공개 메소드들

메소드 설명
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