Click or drag to resize

TrafficLightStateExtensionToggle Method

[This is preliminary documentation and is subject to change.]

Toggles an enum value

Namespace:  TrafficSimulation.Simulation.Engine
Assembly:  TrafficSimulation.Simulation.Engine (in TrafficSimulation.Simulation.Engine.dll) Version: 1.0.0.2 (1.0.0.2)
Syntax
public static TrafficLightState Toggle(
	this TrafficLightState state
)

Parameters

state
Type: TrafficSimulation.Simulation.EngineTrafficLightState

[Missing <param name="state"/> documentation for "M:TrafficSimulation.Simulation.Engine.TrafficLightStateExtension.Toggle(TrafficSimulation.Simulation.Engine.TrafficLightState)"]

Return Value

Type: TrafficLightState

[Missing <returns> documentation for "M:TrafficSimulation.Simulation.Engine.TrafficLightStateExtension.Toggle(TrafficSimulation.Simulation.Engine.TrafficLightState)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type TrafficLightState. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also