DotNet.Materials.Class.MaterialLines - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
EliteDangerousAlmanac / Materials / MaterialLines
Defined in: dotnet/src/EliteDangerousAlmanac/Materials/MaterialLine.cs:98
Reads and writes the in-game spelling of a MaterialLine.
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.
staticDisplayName(line):string
Defined in: dotnet/src/EliteDangerousAlmanac/Materials/MaterialLine.cs:135
The in-game name of a line, such as "Mechanical Components".
this MaterialLine
The line to name.
string
The in-game name.
ArgumentOutOfRangeException
line is not a member.
staticTryParse(name,line):bool
Defined in: dotnet/src/EliteDangerousAlmanac/Materials/MaterialLine.cs:148
Reads a line from its in-game name or its member name.
string?
The name to read. An absent name is a miss.
out MaterialLine
The line the name denotes, when the answer is true.
bool
true when the name denotes a line.
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.