2 writes to _restrictionValues
System.Data (2)
fx\src\data\System\Data\Common\DBConnectionString.cs (2)
118
_restrictionValues
= ParseRestrictions(restrictions, synonyms);
130
_restrictionValues
= restrictionValues;
37 references to _restrictionValues
System.Data (37)
fx\src\data\System\Data\Common\DBConnectionString.cs (37)
157
string[] restrictionValues =
_restrictionValues
;
198
if (!ADP.IsEmptyArray(
_restrictionValues
)) {
199
if (!ADP.IsEmptyArray(entry.
_restrictionValues
)) {
201
restrictionValues = NewRestrictionAllowOnly(entry.
_restrictionValues
,
_restrictionValues
);
209
restrictionValues = entry.
_restrictionValues
;
212
else if (!ADP.IsEmptyArray(
_restrictionValues
)) { // this AllowOnly and entry PreventUsage
213
if (!ADP.IsEmptyArray(entry.
_restrictionValues
)) {
215
restrictionValues = NewRestrictionAllowOnly(
_restrictionValues
, entry.
_restrictionValues
);
219
restrictionValues =
_restrictionValues
;
227
if (ADP.IsEmptyArray(
_restrictionValues
)) {
229
restrictionValues = entry.
_restrictionValues
;
231
else if (ADP.IsEmptyArray(entry.
_restrictionValues
)) {
233
restrictionValues =
_restrictionValues
;
237
restrictionValues = NoDuplicateUnion(
_restrictionValues
, entry.
_restrictionValues
);
240
else if (!ADP.IsEmptyArray(
_restrictionValues
) && !ADP.IsEmptyArray(entry.
_restrictionValues
)) { // both AllowOnly with restrictions
241
if (this.
_restrictionValues
.Length <= entry.
_restrictionValues
.Length) {
243
restrictionValues = NewRestrictionIntersect(
_restrictionValues
, entry.
_restrictionValues
);
247
restrictionValues = NewRestrictionIntersect(entry.
_restrictionValues
,
_restrictionValues
);
268
if ((componentSet != null) && (combinedSet.
_restrictionValues
!= null) && (componentSet.
_restrictionValues
!= null)) {
274
Debug.Assert(combinedSet.
_restrictionValues
.Except(componentSet.
_restrictionValues
).Count() == 0, "Combined set allows values not allowed by component set");
289
Debug.Assert(combinedSet.
_restrictionValues
.Intersect(componentSet.
_restrictionValues
).Count() == 0, "Combined values allows values prevented by component set");
295
Debug.Assert(componentSet.
_restrictionValues
.Except(combinedSet.
_restrictionValues
).Count() == 0, "Combined values does not prevent all of the values prevented by the component set");
309
return ((null ==
_restrictionValues
) || (0 > Array.BinarySearch(
_restrictionValues
, key, StringComparer.Ordinal)));
328
if (null !=
_restrictionValues
) {
329
foreach(string restriction in
_restrictionValues
) {