Show / Hide Table of Contents

Class UtilResources

Provides localized strings for this layer. By default, a JsonStringLocalizerFactory is used.

Inheritance
System.Object
UtilResources
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Celerik.NetCore.Util
Assembly: cs.temp.dll.dll
Syntax
public static class UtilResources

Properties

Factory

Gets a reference to the factory to create IStringLocalizer objects.

Declaration
public static IStringLocalizerFactory Factory { get; }
Property Value
Type Description
IStringLocalizerFactory

Methods

Get(String)

Gets the string resource with the given name.

Declaration
public static string Get(string name)
Parameters
Type Name Description
System.String name

The name of the string resource.

Returns
Type Description
System.String

The string resource.

Get(String, Object[])

Gets the string resource with the given name and formatted with the supplied arguments, using the current culture.

Declaration
public static string Get(string name, params object[] arguments)
Parameters
Type Name Description
System.String name

The name of the string resource.

System.Object[] arguments

The values to format the string with.

Returns
Type Description
System.String

The formatted string resource.

Initialize(IStringLocalizerFactory)

Performs static initialization for this class.

Declaration
public static void Initialize(IStringLocalizerFactory factory)
Parameters
Type Name Description
IStringLocalizerFactory factory

Factory to create IStringLocalizer objects.

In This Article
Back to top Generated by DocFX