Open originalfoo opened 2 years ago
Adds new extensions:
laneId.IsValid()
laneId.IsValidWithSegment()
CheckLanes(laneId)
segmentId.IsValid()
Compared to existing extensions, these new extensions additionally check that the id's are non-zero.
The PR also simplifies some existing code in Flags.cs by using the new extensions, and also updates some xmldoc to be more consistent.
Flags.cs
Adds new extensions:
laneId.IsValid()
laneId.IsValidWithSegment()
-- this replacesCheckLanes(laneId)
segmentId.IsValid()
Compared to existing extensions, these new extensions additionally check that the id's are non-zero.
The PR also simplifies some existing code in
Flags.cs
by using the new extensions, and also updates some xmldoc to be more consistent.