C# Class Stancer.GTFSEngine.Helper

This class provides extension methods to help decode and convert string values to their system type.
ファイルを表示 Open project: mbmccormick/GTFSEngine

Public Methods

Method Description
ToCalendarExceptionType ( this item ) : CalendarExceptionType
ToDate ( this item ) : System.DateTime
ToDirectionType ( this item ) : DirectionType?
ToDropOffType ( this item ) : DropOffType?
ToLocationType ( this item ) : LocationType?
ToPaymentMethodType ( this item ) : PaymentMethodType
ToPickUpType ( this item ) : PickUpType?
ToRouteType ( this item ) : RouteType
ToTimeSpan ( this item ) : System.TimeSpan
ToTransferOptionsType ( this item ) : TransferOptionsType
ToTransferType ( this item ) : TransferType
ValidateNotEmptyOrNull ( this item, string field ) : string

Method Details

ToCalendarExceptionType() public static method

public static ToCalendarExceptionType ( this item ) : CalendarExceptionType
item this
return CalendarExceptionType

ToDate() public static method

public static ToDate ( this item ) : System.DateTime
item this
return System.DateTime

ToDirectionType() public static method

public static ToDirectionType ( this item ) : DirectionType?
item this
return DirectionType?

ToDropOffType() public static method

public static ToDropOffType ( this item ) : DropOffType?
item this
return DropOffType?

ToLocationType() public static method

public static ToLocationType ( this item ) : LocationType?
item this
return LocationType?

ToPaymentMethodType() public static method

public static ToPaymentMethodType ( this item ) : PaymentMethodType
item this
return PaymentMethodType

ToPickUpType() public static method

public static ToPickUpType ( this item ) : PickUpType?
item this
return PickUpType?

ToRouteType() public static method

public static ToRouteType ( this item ) : RouteType
item this
return RouteType

ToTimeSpan() public static method

public static ToTimeSpan ( this item ) : System.TimeSpan
item this
return System.TimeSpan

ToTransferOptionsType() public static method

public static ToTransferOptionsType ( this item ) : TransferOptionsType
item this
return TransferOptionsType

ToTransferType() public static method

public static ToTransferType ( this item ) : TransferType
item this
return TransferType

ValidateNotEmptyOrNull() public static method

public static ValidateNotEmptyOrNull ( this item, string field ) : string
item this
field string
return string