Class TunnelAddressStates
- Namespace
- McServerLauncher.ViewModels
- Assembly
- McServerLauncher.dll
The line of explanation each state shows.
public static class TunnelAddressStates
- Inheritance
-
TunnelAddressStates
- Inherited Members
Methods
KeyFor(TunnelAddressState)
The resx key describing state.
public static string KeyFor(TunnelAddressState state)
Parameters
stateTunnelAddressState
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.