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