4 instantiations of NameValuePermission
System.Data (4)
fx\src\data\System\Data\Common\DBDataPermission.cs (1)
97
_keyvaluetree = new
NameValuePermission
();
fx\src\data\System\Data\Common\NameValuePermission.cs (3)
73
kv = new
NameValuePermission
(keychain.Name);
81
kv = new
NameValuePermission
(keychain.Value, insertValue);
244
return new
NameValuePermission
(this);
26 references to NameValuePermission
System.Data (26)
fx\src\data\System\Data\Common\DBDataPermission.cs (3)
26
private
NameValuePermission
_keyvaluetree =
NameValuePermission
.Default;
102
NameValuePermission
.AddEntry(_keyvaluetree, _keyvalues, entry);
fx\src\data\System\Data\Common\NameValuePermission.cs (23)
29
private
NameValuePermission
[] _tree; // with branches
31
static internal readonly
NameValuePermission
Default = null;// = new NameValuePermission(String.Empty, new string[] { "File Name" }, KeyRestrictionBehavior.AllowOnly);
45
private NameValuePermission(
NameValuePermission
permit) { // deep-copy
50
NameValuePermission
[] tree = (_tree.Clone() as
NameValuePermission
[]);
61
return StringComparer.Ordinal.Compare(_value, ((
NameValuePermission
)a)._value);
64
static internal void AddEntry(
NameValuePermission
kvtree, ArrayList entries, DBConnectionString entry) {
69
NameValuePermission
kv;
115
internal void Intersect(ArrayList entries,
NameValuePermission
target) {
134
NameValuePermission
kvtree = target.CheckKeyForValue(_tree[i]._value);
147
NameValuePermission
[] kvtree = new
NameValuePermission
[count];
159
private void Add(
NameValuePermission
permit) {
160
NameValuePermission
[] tree = _tree;
162
NameValuePermission
[] newtree = new
NameValuePermission
[1+length];
176
NameValuePermission
[] keytree = _tree; // _tree won't mutate but Add will replace it
183
NameValuePermission
permitKey = keytree[i];
193
NameValuePermission
permitValue = permitKey.CheckKeyForValue(valueInQuestion);
230
private
NameValuePermission
CheckKeyForValue(string keyInQuestion) {
231
NameValuePermission
[] valuetree = _tree; // _tree won't mutate but Add will replace it
234
NameValuePermission
permitValue = valuetree[i];
243
internal
NameValuePermission
CopyNameValue() {