Skip to content

StringFormatter ​

String formatter for templates with named variables.

Kind: Class

Namespace: CrowdControl.Common

Public Constructors

StringFormatter(string template)

Creates a new instance of the CrowdControl.Common.StringFormatter class.

Public Member Functions

void

Add(string key, object val)

Adds a new key-value pair to the parameters list.

bool

TryAdd(string key, object val)

Attempts to add a new key-value pair to the parameters list.

void

Add(ICollection> values)

Adds a new key-value pair to the parameters list.

bool

TryAdd(ICollection> values)

Attempts to add a new key-value pair to the parameters list.

virtual override

string

ToString()

Properties

string

Template

[get, ]

IReadOnlyList>

Parameters

[get, ]