C# Class System.ComponentModel.ComponentResourceManager

The ComponentResourceManager is a resource manager object that provides simple functionality for enumerating resources for a component or object.
Inheritance: System.Resources.ResourceManager
Show file Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
FillResources object>.SortedList

Public Methods

Method Description
ApplyResources ( object value, string objectName ) : void

This method examines all the resources for the current culture. When it finds a resource with a key in the format of "[objectName].[property name]" it will apply that resource's value to the corresponding property on the object. If there is no matching property the resource will be ignored.

ApplyResources ( object value, string objectName, CultureInfo culture ) : void

This method examines all the resources for the provided culture. When it finds a resource with a key in the format of "[objectName].[property name]" it will apply that resource's value to the corresponding property on the object. If there is no matching property the resource will be ignored.

ComponentResourceManager ( ) : System
ComponentResourceManager ( Type t ) : System

Private Methods

Method Description
FillResources ( CultureInfo culture, ResourceSet &resourceSet ) : object>.SortedList

Recursive routine that creates a resource hashtable populated with resources for culture and all parent cultures.

Method Details

ApplyResources() public method

This method examines all the resources for the current culture. When it finds a resource with a key in the format of "[objectName].[property name]" it will apply that resource's value to the corresponding property on the object. If there is no matching property the resource will be ignored.
public ApplyResources ( object value, string objectName ) : void
value object
objectName string
return void

ApplyResources() public method

This method examines all the resources for the provided culture. When it finds a resource with a key in the format of "[objectName].[property name]" it will apply that resource's value to the corresponding property on the object. If there is no matching property the resource will be ignored.
public ApplyResources ( object value, string objectName, CultureInfo culture ) : void
value object
objectName string
culture System.Globalization.CultureInfo
return void

ComponentResourceManager() public method

public ComponentResourceManager ( ) : System
return System

ComponentResourceManager() public method

public ComponentResourceManager ( Type t ) : System
t System.Type
return System