IExpandoResourceSetSetAliasValue Method

Adds or replaces an assembly alias value in the current IExpandoResourceSet.

Definition

Namespace: KGySoft.Resources
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
C#
void SetAliasValue(
	string alias,
	string assemblyName
)

Parameters

alias  String
The alias name to use instead of assemblyName in the saved .resx file.
assemblyName  String
The fully or partially qualified name of the assembly.

Remarks

  Note

The added alias values are dumped on demand when saving: only when a resource type is defined in the Assembly, whose name is the assemblyName. Other alias names will be auto generated for non-specified assemblies.

Exceptions

ObjectDisposedExceptionThe IExpandoResourceSet is already disposed.
ArgumentNullExceptionassemblyName or alias is .

See Also