public static bool IsOutput(this PortDirections self) { return(self.HasFlag(PortDirections.Output)); }