Exemplo n.º 1
0
 public static TransportWayIdInterop ToInterop(this TransportWayId wayId)
 {
     return(new TransportWayIdInterop
     {
         CellKey = ToInterop(wayId.CellKey),
         LocalWayId = wayId.LocalWayId,
         TransportNetworkType = wayId.NetworkType
     });
 }
        /// <summary>
        /// Static factory method to create an empty instance representing a null-reference to a TransportWay
        /// </summary>
        /// <returns>A TransportWayId instance.</returns>
        public static TransportWayId MakeEmpty()
        {
            var emptyId = new TransportWayId
            {
                CellKey     = new TransportCellKey(),
                LocalWayId  = -1,
                NetworkType = TransportNetworkType.Road
            };

            return(emptyId);
        }