Пример #1
0
                        public bool IsUnBoilable (IBoilProvider provider)
                        {
                                if (Depends.Length == 0)
                                        return true;

                                foreach (int id in Depends)
                                        if (! (provider.Contains (id)))
                                                return false;

                                return true;
                        }
Пример #2
0
            public bool IsUnBoilable(IBoilProvider provider)
            {
                if (Depends.Length == 0)
                {
                    return(true);
                }

                foreach (int id in Depends)
                {
                    if (!(provider.Contains(id)))
                    {
                        return(false);
                    }
                }

                return(true);
            }