20 references to ThrowUnless
System.DirectoryServices.Protocols (20)
System\DirectoryServices\Protocols\common\DirectoryControl.cs (20)
170
ThrowUnless
(sequenceContentLength > 0);
171
ThrowUnless
(bytesConsumed == asnSpan.Length);
175
ThrowUnless
(asnReadSuccessful);
182
ThrowUnless
(asnSpan.IsEmpty);
193
ThrowUnless
(sequenceContentLength > 0);
194
ThrowUnless
(bytesConsumed == asnSpan.Length);
197
ThrowUnless
(bytesConsumed == sequenceContentLength);
208
ThrowUnless
(sequenceContentLength > 0);
209
ThrowUnless
(bytesConsumed == asnSpan.Length);
213
ThrowUnless
(asnReadSuccessful);
217
ThrowUnless
(asnReadSuccessful);
221
ThrowUnless
(asnSpan.Length == bytesConsumed);
233
ThrowUnless
(sequenceContentLength > 0);
234
ThrowUnless
(bytesConsumed == asnSpan.Length);
262
ThrowUnless
(asnSpan.IsEmpty);
274
ThrowUnless
(sequenceContentLength > 0);
275
ThrowUnless
(bytesConsumed == asnSpan.Length);
279
ThrowUnless
(asnReadSuccessful);
283
ThrowUnless
(asnReadSuccessful);
297
ThrowUnless
(asnSpan.IsEmpty);