DotNet.Materials.Class.MaterialLines - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

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.

⚠️ **GitHub.com Fallback** ⚠️