Table of Contents

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

Name string

The resource key name as it appears in the .resx file.

Manager ResourceManager

The resource manager that resolves Name.

Properties

Manager

The resource manager that resolves Name.

public ResourceManager Manager { get; init; }

Property Value

ResourceManager

Name

The resource key name as it appears in the .resx file.

public string Name { get; init; }

Property Value

string