static void EndPopulate(IList target, ISupportInitialize supportInitialize) { ILockable lockable = target as ILockable; if (lockable != null) { lockable.EndUpdate(); } if (supportInitialize != null) { supportInitialize.EndInit(); } }