public HtmlConventionLibrary() { _libraries.OnMissing = type => { var libType = typeof(TagLibrary <>).MakeGenericType(type); return(Activator.CreateInstance(libType)); }; _defaultBuilder = _services[TagConstants.Default]; }
// START HERE! public void FillInto(ServiceBuilder serviceBuilder) => _services.Each((type, o) => serviceBuilder._services.Fill(type, o));
public HtmlConventionLibrary() { TagLibrary = new TagLibrary(); _defaultBuilder = _services[TagConstants.Default]; }
public void FillInto(ServiceBuilder serviceBuilder) { _services.Each((type, o) => { serviceBuilder._services.Fill(type, o); }); }