System Library Common Framework
Search Results for

    *.Benchmark*,*.Tests*,*.ApiTests*,*.BaseTest*,DelegateJsonConverter,CalleeCancelledRequestException,ClientResponse,ContentType,OutputCachePolicy
    Show / Hide Table of Contents Show / Hide Table of Contents
    NamespaceSystemLibrary.Common.Framework.App SystemLibrary.Common.Framework.App.dll

    HtmlHelperFactory builds a new instance of IHtmlBuilder outside of your View Context

    HtmlHelperFactory

    public class HtmlHelperFactory

    Inheritance
    object
    HtmlHelperFactory
    Examples
    Arguments
    X

    Methods

    Build a default IHtmlHelper

    public static IHtmlHelper Build()

    X

    Usage:

    var htmlHelper = HtmlHelperFactory.Build();
    X
    X
    Type Description
    IHtmlHelper

    IHtmlHelper instance, never null

    Build a IHtmlHelper<T> where T is your ViewModel

    public static IHtmlHelper<T> Build<T>() where T : class

    X

    Usage:

    class ViewModel 
    {
        public string Title { get; set; }
    }
    var htmlHelper = HtmlHelperFactory.Build<ViewModel>();
    X
    Generic types
    Name Description
    T
    X
    Type Description
    IHtmlHelper<T>

    IHtmlHelper of T instance, never null

    Extension Methods

    ObjectExtensions.Json(object, bool)
    ObjectExtensions.Json(object, JsonSerializerOptions, bool, params JsonConverter[])
    ObjectExtensions.Json(object, params JsonConverter[])
    ObjectExtensions.Xml(object)

    }

    In This Article
    Package: nuget
    Source: github
    Website: System Library Common Framework