Пример #1
0
        public static bool Add(IocPropertyInfo pi)
        {
            if (pi == null)
            {
                Debug.Assert(false); return(false);
            }

            // Name must be non-empty
            string strName = pi.Name;

            if (string.IsNullOrEmpty(strName))
            {
                Debug.Assert(false); return(false);
            }

            IocPropertyInfo piEx = Get(strName);             // Ensures initialized

            if (piEx != null)
            {
                Debug.Assert(false); return(false);
            }                                                                   // Exists already

            m_l.Add(pi);
            return(true);
        }
Пример #2
0
        public static bool Add(IocPropertyInfo pi)
        {
            if(pi == null) { Debug.Assert(false); return false; }

            // Name must be non-empty
            string strName = pi.Name;
            if(string.IsNullOrEmpty(strName)) { Debug.Assert(false); return false; }

            IocPropertyInfo piEx = Get(strName); // Ensures initialized
            if(piEx != null) { Debug.Assert(false); return false; } // Exists already

            m_l.Add(pi);
            return true;
        }