- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
internal class DeviceState
{
internal string PrimaryState { get; private set; }
private HashSet<string> _multiplieStates;
// много кода...
internal string[] GetStates()
{
string states = PrimaryState;
if (_multiplieStates.Count > 0)
{
states += '|' + string.Join("|", _multiplieStates);
};
return states.Split('|');
}
}