Esempio n. 1
0
        private /*DBConnectionString[]*/ ArrayList _keyvalues; // = null;

        internal void AddPermissionEntry(DBConnectionString entry)
        {
            if (null == _keyvaluetree)
            {
                _keyvaluetree = new NameValuePermission();
            }
            if (null == _keyvalues)
            {
                _keyvalues = new ArrayList();
            }
            NameValuePermission.AddEntry(_keyvaluetree, _keyvalues, entry);
            _IsUnrestricted = false; // MDAC 84639
        }
Esempio n. 2
0
        // Modified CopyFrom to make sure that we copy the Name Value Pair
        private void CopyFrom(SqlClientPermission permission)
        {
            if (!_IsUnrestricted)
            {
                if (null != permission._keyvalues)
                {
                    _keyvalues = (ArrayList)permission._keyvalues.Clone();

                    if (null != permission._keyvaluetree)
                    {
                        _keyvaluetree = permission._keyvaluetree.CopyNameValue();
                    }
                }
            }
        }