ViewBagHelper Class

Summary

Helper for working with the ViewBag in templates.
graph BT Type-->Base0["Object"] Type["ViewBagHelper"] class Type type-node

Syntax

public static class ViewBagHelper

Methods

Name Value Summary
ValueOrDefault<T>(object, T) T
Returns the value or a default value if value is null.
static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin