Skip to content

DotNet.Commodities.Class.CommodityCategories

github-actions[bot] edited this page Sep 20, 2026 · 11 revisions

EliteDangerousAlmanac / Commodities / CommodityCategories

Class: CommodityCategories

Defined in: dotnet/src/EliteDangerousAlmanac/Commodities/CommodityCategory.cs:69

Reads and writes the in-game spelling of a CommodityCategory.

Remarks

Three groups are two words in the game — consumer items, industrial materials and legal drugs — so the member name and the in-game name differ. Use these members whenever a group has to reach a user interface or arrive from a market payload.

Methods

DisplayName()

static DisplayName(category): string

Defined in: dotnet/src/EliteDangerousAlmanac/Commodities/CommodityCategory.cs:97

The in-game name of a group, such as "Consumer Items".

Parameters

category

this CommodityCategory

The group to name.

Returns

string

The in-game name.

Exceptions

ArgumentOutOfRangeException

category is not a member.

TryParse()

static TryParse(name, category): bool

Defined in: dotnet/src/EliteDangerousAlmanac/Commodities/CommodityCategory.cs:107

Reads a group from its in-game name or its member name.

Parameters

name

string?

The group name, such as Legal Drugs.

category

out CommodityCategory

The group the name denotes, when the answer is true.

Returns

bool

true when the name denotes a group.

Remarks

Leading and trailing whitespace and case are ignored.

.NET

Guides
Astronomy
Classes (16)
Records (29)
Enumerations (6)
Commodities
Classes (2)
Records (1)
Enumerations (1)
Equipment
Classes (8)
Records (19)
Enumerations (8)
GalaxyMap
Classes (1)
Records (1)
Localization
Classes (2)
Enumerations (1)
Materials
Classes (5)
Records (2)
Enumerations (4)
Ships
Classes (42)
Records (115)
Interfaces (1)
Enumerations (35)

Clone this wiki locally