Skip to content

DotNet.Materials.Class.MaterialLines

github-actions[bot] edited this page Sep 23, 2026 · 12 revisions

EliteDangerousAlmanac / Materials / MaterialLines

Class: MaterialLines

Defined in: dotnet/src/EliteDangerousAlmanac/Materials/MaterialLine.cs:98

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

Remarks

Some lines are two words in the game — mechanical components, emission data, wake scans, shield data, encryption files, data archives and encoded firmware — so the member name and the in-game name differ. Use these members whenever a line has to reach a user interface or arrive from one.

Methods

DisplayName()

static DisplayName(line): string

Defined in: dotnet/src/EliteDangerousAlmanac/Materials/MaterialLine.cs:135

The in-game name of a line, such as "Mechanical Components".

Parameters

line

this MaterialLine

The line to name.

Returns

string

The in-game name.

Exceptions

ArgumentOutOfRangeException

line is not a member.

TryParse()

static TryParse(name, line): bool

Defined in: dotnet/src/EliteDangerousAlmanac/Materials/MaterialLine.cs:148

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

Parameters

name

string?

The name to read. An absent name is a miss.

line

out MaterialLine

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

Returns

bool

true when the name denotes a line.

Remarks

Leading and trailing whitespace and case are ignored, so a value that arrived from a saved filter or a dropdown resolves without cleaning it first.

.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