Exemplo n.º 1
0
        public bool InArcByType(ArcTypes arcType)
        {
            if (!InArcInfo.ContainsKey(arcType))
            {
                return(false);
            }

            return(InArcInfo[arcType]);
        }
Exemplo n.º 2
0
        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);
        }