ResXManagerFindResourceT(String, StringComparison) Method

Finds a resource by the specified name of specified type inside the .NET managed resource file.

Definition

Namespace: DevCase.Core.Application.Resources
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public virtual Resource<T> FindResource<T>(
	string name,
	StringComparison stringComparison = StringComparison.OrdinalIgnoreCase
)

Parameters

name  String
The resource name.
stringComparison  StringComparison  (Optional)
The StringComparison to compare the resource name.

Type Parameters

T
The type.

Return Value

ResourceT
The resource.

Exceptions

FileNotFoundException Resource file not found.
ArgumentException Resource with the specified name is not found.;name
ArgumentException The specified Type differs from the resource Type.;T

See Also