diff --git a/src/Itinero/Profiles/Vehicle.cs b/src/Itinero/Profiles/Vehicle.cs index 13351d97..7b79c6f0 100644 --- a/src/Itinero/Profiles/Vehicle.cs +++ b/src/Itinero/Profiles/Vehicle.cs @@ -54,35 +54,17 @@ public abstract string Name /// /// Gets the vehicle types. /// - public virtual string[] VehicleTypes - { - get - { - return new string[] { }; - } - } + public virtual string[] VehicleTypes { get; } = []; /// /// Gets a whitelist of attributes to keep as meta-data. /// - public virtual HashSet MetaWhiteList - { - get - { - return new HashSet(); - } - } + public virtual HashSet MetaWhiteList { get; } = []; /// /// Gets a whitelist of attributes to keep as part of the profile. /// - public virtual HashSet ProfileWhiteList - { - get - { - return new HashSet(); - } - } + public virtual HashSet ProfileWhiteList { get; } = []; /// /// Adds a number of keys to the given whitelist when they are relevant for this vehicle. @@ -215,7 +197,7 @@ public long Serialize(Stream stream) /// /// Serializes the content of this vehicle. - /// protected virtual long DoSerialize(Stream stream) { return 0;