Show / Hide Table of Contents

Class VehicleExtensions

Contains extension methods related to the vehicle class.

Inheritance
System.Object
VehicleExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public static class VehicleExtensions

Methods

AddToWhiteList(Vehicle[], IAttributeCollection, Whitelist)

Adds all the keys to the whitelist if they are relevante for the profiles.

Declaration
public static bool AddToWhiteList(this Vehicle[] vehicles, IAttributeCollection attributes, Whitelist whiteList)
Parameters
Vehicle[] vehicles

IAttributeCollection attributes

Whitelist whiteList

Returns
System.Boolean

AddToWhiteList(Vehicle[], IAttributeCollection, Whitelist, Boolean[])

Adds all the keys to the whitelist if they are relevante for the profiles.

Declaration
public static bool AddToWhiteList(this Vehicle[] vehicles, IAttributeCollection attributes, Whitelist whiteList, bool[] canTraverse)
Parameters
Vehicle[] vehicles

IAttributeCollection attributes

Whitelist whiteList

System.Boolean[] canTraverse

Returns
System.Boolean

AnyCanTraverse(Vehicle[], IAttributeCollection)

Returns true if any vehicle in the given array can traverse a way with the given tags.

Declaration
public static bool AnyCanTraverse(this Vehicle[] vehicles, IAttributeCollection tags)
Parameters
Vehicle[] vehicles

IAttributeCollection tags

Returns
System.Boolean

CanTraverse(Vehicle, IAttributeCollection)

Returns true if the given vehicle can traverse a way with the given attributes.

Declaration
public static bool CanTraverse(this Vehicle vehicle, IAttributeCollection attributes)
Parameters
Vehicle vehicle

IAttributeCollection attributes

Returns
System.Boolean

IsOnMetaWhiteList(Vehicle[], String)

Returns true if the given key is on any of the vehicles meta whitelist.

Declaration
public static bool IsOnMetaWhiteList(this Vehicle[] vehicles, string key)
Parameters
Vehicle[] vehicles

System.String key

Returns
System.Boolean

IsOnProfileWhiteList(Vehicle[], String)

Returns true if the given key is on any of the vehicles profile whitelist.

Declaration
public static bool IsOnProfileWhiteList(this Vehicle[] vehicles, string key)
Parameters
Vehicle[] vehicles

System.String key

Returns
System.Boolean

Back to top Built by Itinero, MIT licensed.