Esempio n. 1
0
        /// <summary>
        /// Returns the flag whether the value exists as the value element of a pre-declared property.  Not
        /// sure who would use this, but its there, with a default implementation.
        /// </summary>
        /// <param name="value">property value</param>
        /// <returns>flag</returns>
        public virtual bool NativeContainsValue(object value)
        {
            using var enumerator = NativeEnumerable.GetEnumerator();
            while (enumerator.MoveNext())
            {
                if (Equals(value, enumerator.Current.Value))
                {
                    return(true);
                }
            }

            return(false);
        }
Esempio n. 2
0
 IEnumerator <Cell> IEnumerable <Cell> .GetEnumerator() => Cells.GetEnumerator();