New to Telerik UI for WPFStart a free 30-day trial

Represents a formatter that is used by ReportResultAttribute.

Definition

Namespace:Telerik.Windows.Controls.ConversationalUI

Assembly:Telerik.Windows.Controls.ConversationalUI.dll

Type Parameters:

T

Syntax:

C#
public class ResultFormatter<T> : IFormatResult

Inheritance: objectResultFormatter<T>

Implements: IFormatResult

Constructors

Initializes a new instance of the ResultFormatter<T> class.

C#
public ResultFormatter(Func<T, string> resultFormatFunc)
Parameters:resultFormatFuncFunc<T, string>

Properties

Gets or sets the formatting function.

C#
public Func<T, string> ResultFormatFunc { get; set; }

Methods

Invokes the formatting function.

C#
public string FormatResult(object input)
Parameters:inputobjectReturns:

string

Implements: IFormatResult.FormatResult(object)

Invokes the formatting function.

C#
public string FormatResult(T input)
Parameters:inputTReturns:

string