Class Station
Represents a specific station in the VGN network.
public record Station : IEquatable<Station>
- Inheritance
-
Station
- Implements
- Inherited Members
Constructors
Station(Station)
protected Station(Station original)
Parameters
originalStation
Station(string, int, double, double, IEnumerable<TransportType>)
Represents a specific station in the VGN network.
public Station(string Name, int StationId, double Latitude, double Longitude, IEnumerable<TransportType> Transports)
Parameters
NamestringThe name of the station.
StationIdintThe identifier of the VGN.
LatitudedoubleThe latitude of the station on the map.
LongitudedoubleThe longitude of the station on the map.
TransportsIEnumerable<TransportType>All available means of transportation.
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Latitude
The latitude of the station on the map.
public double Latitude { get; init; }
Property Value
Longitude
The longitude of the station on the map.
public double Longitude { get; init; }
Property Value
Name
The name of the station.
public string Name { get; init; }
Property Value
StationId
The identifier of the VGN.
public int StationId { get; init; }
Property Value
Transports
All available means of transportation.
public IEnumerable<TransportType> Transports { get; init; }
Property Value
Methods
Deconstruct(out string, out int, out double, out double, out IEnumerable<TransportType>)
public void Deconstruct(out string Name, out int StationId, out double Latitude, out double Longitude, out IEnumerable<TransportType> Transports)
Parameters
NamestringStationIdintLatitudedoubleLongitudedoubleTransportsIEnumerable<TransportType>
Equals(Station?)
public virtual bool Equals(Station? other)
Parameters
otherStation
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(Station?, Station?)
public static bool operator ==(Station? left, Station? right)
Parameters
Returns
operator !=(Station?, Station?)
public static bool operator !=(Station? left, Station? right)