CalendarAggregator.CalendarRenderer.FeedComesFrom C# (CSharp) Метод

FeedComesFrom() публичный статический Метод

public static FeedComesFrom ( CalendarAggregator.ZonelessEvent evt, string source ) : bool
evt CalendarAggregator.ZonelessEvent
source string
Результат bool
        public static bool FeedComesFrom(ZonelessEvent evt, string source)
        {
            if (evt.source.StartsWith(source))
                return true;
            foreach (var url_and_source in evt.urls_and_sources)
                if (url_and_source.Value.StartsWith(source))
                    return true;
            return false;
        }