Click or drag to resize

ExtensionMethodsSetEnabled Method (ListBehaviour, Boolean)

Helper to set a list of Behaviours active or inactive.

Namespace:  DustProductions.Core
Assembly:  DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static void SetEnabled(
	this List<Behaviour> behaviours,
	bool enabled
)

Parameters

behaviours
Type: System.Collections.GenericListBehaviour
Behaviours to set
enabled
Type: SystemBoolean
True for enabled, false for disabled

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ListBehaviour. 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