Struct ResourceKey
- Namespace
- RentADeveloper.ResXLocalization
- Assembly
- ResXLocalization.Core.dll
A typed, file-scoped resource key that pairs a key name with the ResourceManager
that owns it. The bundled source generator emits one static ResourceKey per string
entry in each eligible neutral .resx file, giving compile-time-validated keys with editor
auto-completion.
public readonly record struct ResourceKey : IEquatable<ResourceKey>
- Implements
- Inherited Members
Constructors
ResourceKey(string, ResourceManager)
A typed, file-scoped resource key that pairs a key name with the ResourceManager
that owns it. The bundled source generator emits one static ResourceKey per string
entry in each eligible neutral .resx file, giving compile-time-validated keys with editor
auto-completion.
public ResourceKey(string Name, ResourceManager Manager)
Parameters
NamestringThe resource key name as it appears in the
.resxfile.ManagerResourceManagerThe resource manager that resolves
Name.
Properties
Manager
The resource manager that resolves Name.
public ResourceManager Manager { get; init; }
Property Value
Name
The resource key name as it appears in the .resx file.
public string Name { get; init; }