Class BedrockAddressStates
- Namespace
- McServerLauncher.ViewModels
- Assembly
- McServerLauncher.dll
The line of explanation each state shows.
public static class BedrockAddressStates
- Inheritance
-
BedrockAddressStates
- Inherited Members
Methods
KeyFor(BedrockAddressState)
The resx key describing state.
public static string KeyFor(BedrockAddressState state)
Parameters
stateBedrockAddressState
Returns
Remarks
A method rather than the switch written inline in the view model, because a key built at run time is invisible to the test that checks every key the code asks for exists: it only reads string literals. Here a test can walk the enum and prove all four resolve.