public static bool CheckFlags(this NetInfo.Segment segmentInfo, NetSegment.Flags flags, bool turnAround) { if (!turnAround) { return(flags.CheckFlags(segmentInfo.m_forwardRequired, segmentInfo.m_forwardForbidden)); } else { return(flags.CheckFlags(segmentInfo.m_backwardRequired, segmentInfo.m_backwardForbidden)); } }
public bool CheckFlags(NetSegment.Flags flags) => flags.CheckFlags(Required, Forbidden);