Esempio n. 1
0
        public void ClearChangesMask <U>(DynamicUpdateField <U> updateField) where U : new()
        {
            if (typeof(U).BaseType == typeof(IHasChangesMask))
            {
                for (int i = 0; i < updateField.Size(); ++i)
                {
                    ((IHasChangesMask)updateField[i]).ClearChangesMask();
                }

                updateField.ClearChangesMask();
            }
        }
Esempio n. 2
0
        public void ClearChangesMask <U>(DynamicUpdateField <U> updateField) where U : new()
        {
            if (typeof(U).GetInterfaces().Any(x => typeof(IHasChangesMask) == x))
            {
                for (int i = 0; i < updateField.Size(); ++i)
                {
                    ((IHasChangesMask)updateField[i]).ClearChangesMask();
                }

                updateField.ClearChangesMask();
            }
        }
Esempio n. 3
0
        public void ClearChangesMask <U>(DynamicUpdateField <U> updateField) where U : new()
        {
            if (typeof(IHasChangesMask).IsAssignableFrom(typeof(U)))
            {
                for (int i = 0; i < updateField.Size(); ++i)
                {
                    ((IHasChangesMask)updateField[i]).ClearChangesMask();
                }

                updateField.ClearChangesMask();
            }
        }