Class LocalizationResourceBase
Represents a class which contains resource manager that provides convenient access to culture-specific resources at run time.
Inheritance
System.Object
LocalizationResourceBase
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.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.WinForms.Core
Assembly: Syncfusion.Shared.Base.dll
Syntax
public class LocalizationResourceBase
Constructors
LocalizationResourceBase()
Initializes a new instance of the LocalizationResourceBase class.
Declaration
public LocalizationResourceBase()
Methods
GetString(String)
Gets the localized string for the current culture.
Declaration
public static string GetString(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The string that need to be localized. |
Returns
Type | Description |
---|---|
System.String | Returns the localized string. |
SetResources(Assembly, String)
Sets the resource manager based on the assembly and namespace. It can be used to get the values from the application resource files when the assembly name and the namespace of the control or application is different.
Declaration
public static void SetResources(Assembly controlAssembly, string nameSpace)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.Assembly | controlAssembly | The control assembly. |
System.String | nameSpace | The namespace of the control. |