TheAirline.Models.Airports.Airport.GetMaxRunwayLength C# (CSharp) Method

GetMaxRunwayLength() public method

public GetMaxRunwayLength ( ) : long
return long
        public long GetMaxRunwayLength()
        {
            if (Runways.Count == 0)
            {
                return 0;
            }

            IEnumerable<long> query = from r in Runways
                                      where r.BuiltDate <= GameObject.GetInstance().GameTime
                                      select r.Length;
            return query.Max();
        }