8 instantiations of LocalizedHtmlString
Microsoft.AspNetCore.Mvc.Localization (2)
HtmlLocalizer.cs (2)
74new LocalizedHtmlString(result.Name, result.Value, result.ResourceNotFound); 82new LocalizedHtmlString(result.Name, result.Value, result.ResourceNotFound, arguments);
Microsoft.AspNetCore.Mvc.Localization.Test (6)
HtmlLocalizerOfTTest.cs (2)
14var localizedString = new LocalizedHtmlString("Hello", "Bonjour"); 36var localizedString = new LocalizedHtmlString("Hello", "Bonjour test");
ViewLocalizerTest.cs (4)
57var localizedString = new LocalizedHtmlString("Hello", "Bonjour"); 89var localizedString = new LocalizedHtmlString("Hello", "Bonjour test"); 299return new LocalizedHtmlString( 311return new LocalizedHtmlString(
46 references to LocalizedHtmlString
Microsoft.AspNetCore.Mvc.Localization (23)
HtmlLocalizer.cs (6)
28public virtual LocalizedHtmlString this[string name] 39public virtual LocalizedHtmlString this[string name, params object[] arguments] 70/// Creates a new <see cref="LocalizedHtmlString"/> for a <see cref="LocalizedString"/>. 73protected virtual LocalizedHtmlString ToHtmlString(LocalizedString result) => 77/// Creates a new <see cref="LocalizedHtmlString"/> for a <see cref="LocalizedString"/>. 81protected virtual LocalizedHtmlString ToHtmlString(LocalizedString result, object[] arguments) =>
HtmlLocalizerExtensions.cs (6)
14/// Gets the <see cref="LocalizedHtmlString"/> resource for a specific name. 18/// <returns>The <see cref="LocalizedHtmlString"/> resource.</returns> 19public static LocalizedHtmlString GetHtml(this IHtmlLocalizer htmlLocalizer, string name) 28/// Gets the <see cref="LocalizedHtmlString"/> resource for a specific name. 33/// <returns>The <see cref="LocalizedHtmlString"/> resource.</returns> 34public static LocalizedHtmlString GetHtml(this IHtmlLocalizer htmlLocalizer, string name, params object[] arguments)
HtmlLocalizerOfT.cs (2)
27public virtual LocalizedHtmlString this[string name] 38public virtual LocalizedHtmlString this[string name, params object[] arguments]
IHtmlLocalizer.cs (4)
18/// <returns>The string resource as a <see cref="LocalizedHtmlString"/>.</returns> 19LocalizedHtmlString this[string name] { get; } 27/// <returns>The formatted string resource as a <see cref="LocalizedHtmlString"/>.</returns> 28LocalizedHtmlString this[string name, params object[] arguments] { get; }
LocalizedHtmlString.cs (3)
17/// Creates an instance of <see cref="LocalizedHtmlString"/>. 27/// Creates an instance of <see cref="LocalizedHtmlString"/>. 38/// Creates an instance of <see cref="LocalizedHtmlString"/>.
ViewLocalizer.cs (2)
43public virtual LocalizedHtmlString this[string key] 54public virtual LocalizedHtmlString this[string key, params object[] arguments]
Microsoft.AspNetCore.Mvc.Localization.Test (23)
HtmlLocalizerOfTTest.cs (4)
14var localizedString = new LocalizedHtmlString("Hello", "Bonjour"); 26var actualLocalizedString = htmlLocalizerOfT["Hello"]; 36var localizedString = new LocalizedHtmlString("Hello", "Bonjour test"); 48var actualLocalizedString = htmlLocalizerOfT["Hello", "test"];
HtmlLocalizerTest.cs (6)
25var actualLocalizedHtmlString = htmlLocalizer["Hello"]; 44var actualLocalizedHtmlString = htmlLocalizer["Hello", "test"]; 109var localizedHtmlString = htmlLocalizer.GetHtml("Hello", arguments); 145var content = htmlLocalizer.GetHtml("Hello", new object[] { }); 195var actualLocalizedHtmlString = htmlLocalizer.GetHtml("John"); 210var actualLocalizedHtmlString = htmlLocalizer["John"];
MvcLocalizationServiceCollectionExtensionsTest.cs (4)
74public LocalizedHtmlString this[string name] => throw new NotImplementedException(); 76public LocalizedHtmlString this[string name, params object[] arguments] 103public LocalizedHtmlString this[string name] => throw new NotImplementedException(); 105public LocalizedHtmlString this[string name, params object[] arguments]
ViewLocalizerTest.cs (9)
57var localizedString = new LocalizedHtmlString("Hello", "Bonjour"); 76var actualLocalizedString = viewLocalizer["Hello"]; 89var localizedString = new LocalizedHtmlString("Hello", "Bonjour test"); 108var actualLocalizedString = viewLocalizer["Hello", "test"]; 231var actualLocalizedString = viewLocalizer.GetHtml("John"); 255var actualLocalizedString = viewLocalizer.GetHtml("John", "Doe"); 279var actualLocalizedString = htmlLocalizer["John"]; 294public LocalizedHtmlString this[string name] 306public LocalizedHtmlString this[string name, params object[] arguments]