TextWriterExtensions
Class
Extension methods for TextWriter.
Definition
Namespace:Kendo.Mvc.Extensions
Assembly:Kendo.Mvc.dll
Syntax:
C#
public static class TextWriterExtensions
Inheritance: objectTextWriterExtensions
Inherited Members
Methods
Writes content to the TextWriter using the specified action, with optional HTML encoding.
C#
public static void WriteContent<T>(this TextWriter writer, Func<T, object> action, HtmlEncoder htmlEncoder, T dataItem = null, bool htmlEncode = false) where T : class
The text writer.
actionFunc<T, object>The action to generate content.
htmlEncoderHtmlEncoderThe HTML encoder.
dataItemTThe data item to pass to the action.
htmlEncodeboolWhether to HTML encode the output.