public bool InArcByType(ArcTypes arcType) { if (!InArcInfo.ContainsKey(arcType)) { return(false); } return(InArcInfo[arcType]); }
public bool InArcByType(ArcType arcType) { Dictionary <GenericArc, bool> filteredInfo = InArcInfo.Where(a => a.Key.ArcType == arcType).ToDictionary(a => a.Key, a => a.Value); if (filteredInfo == null || filteredInfo.Count == 0) { return(false); } foreach (var arcInfo in filteredInfo) { if (arcInfo.Value) { return(true); } } return(false); }