public static IColorSwitchState ToColorSwitch(this XElement element) { return(ReadOnlyColorSwitchState.FromXElement(element)); }