Table of Contents

Class Station

Namespace
DotVgn.Common.Models
Assembly
DotVgn.Common.dll

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

original Station

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

Name string

The name of the station.

StationId int

The identifier of the VGN.

Latitude double

The latitude of the station on the map.

Longitude double

The longitude of the station on the map.

Transports IEnumerable<TransportType>

All available means of transportation.

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Latitude

The latitude of the station on the map.

public double Latitude { get; init; }

Property Value

double

Longitude

The longitude of the station on the map.

public double Longitude { get; init; }

Property Value

double

Name

The name of the station.

public string Name { get; init; }

Property Value

string

StationId

The identifier of the VGN.

public int StationId { get; init; }

Property Value

int

Transports

All available means of transportation.

public IEnumerable<TransportType> Transports { get; init; }

Property Value

IEnumerable<TransportType>

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

Name string
StationId int
Latitude double
Longitude double
Transports IEnumerable<TransportType>

Equals(Station?)

public virtual bool Equals(Station? other)

Parameters

other Station

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(Station?, Station?)

public static bool operator ==(Station? left, Station? right)

Parameters

left Station
right Station

Returns

bool

operator !=(Station?, Station?)

public static bool operator !=(Station? left, Station? right)

Parameters

left Station
right Station

Returns

bool