DevZest.Licensing by DevZest

<PackageReference Include="DevZest.Licensing" Version="2.0.0" />

 LicenseItemAttribute

public sealed class LicenseItemAttribute : Attribute
Declares license items of an assembly.
public string DescriptionResourceBaseName { get; }

Gets the resource root name of the description.

public string DescriptionResourceName { get; }

Gets the resource name of the description.

public string Name { get; }

Gets the license item name.

public LicenseItemAttribute(string name)

Initializes a new instance of LicenseItemAttribute class with specified license item name.

public LicenseItemAttribute(string name, string descriptionResourceBaseName, string descriptionResourceName)

Initializes a new instance of LicenseItemAttribute class with specified license item name and localizable description.

public string GetDescription(Assembly assembly)

Gets the descritpion of the license item, using current thread's culture.

public string GetDescription(Assembly assembly, CultureInfo culture)

Gets the descritpion of the license item, using specified culture.