56 references to ThrowIfNull
System.Private.CoreLib (56)
src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\ComponentActivator.cs (1)
190ArgumentNullException.ThrowIfNull(assembly);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStream.cs (1)
153ArgumentNullException.ThrowIfNull(pointer);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Java\JavaMarshal.cs (1)
18ArgumentNullException.ThrowIfNull(markCrossReferences);
src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (1)
27ArgumentNullException.ThrowIfNull(value);
src\libraries\System.Private.CoreLib\src\System\Text\Decoder.cs (5)
99ArgumentNullException.ThrowIfNull(bytes); 161ArgumentNullException.ThrowIfNull(bytes); 162ArgumentNullException.ThrowIfNull(chars); 273ArgumentNullException.ThrowIfNull(bytes); 274ArgumentNullException.ThrowIfNull(chars);
src\libraries\System.Private.CoreLib\src\System\Text\DecoderNLS.cs (5)
67ArgumentNullException.ThrowIfNull(bytes); 118ArgumentNullException.ThrowIfNull(bytes); 119ArgumentNullException.ThrowIfNull(chars); 171ArgumentNullException.ThrowIfNull(bytes); 172ArgumentNullException.ThrowIfNull(chars);
src\libraries\System.Private.CoreLib\src\System\Text\Encoder.cs (5)
96ArgumentNullException.ThrowIfNull(chars); 158ArgumentNullException.ThrowIfNull(chars); 159ArgumentNullException.ThrowIfNull(bytes); 272ArgumentNullException.ThrowIfNull(chars); 273ArgumentNullException.ThrowIfNull(bytes);
src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (5)
66ArgumentNullException.ThrowIfNull(chars); 107ArgumentNullException.ThrowIfNull(chars); 108ArgumentNullException.ThrowIfNull(bytes); 157ArgumentNullException.ThrowIfNull(chars); 158ArgumentNullException.ThrowIfNull(bytes);
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (7)
573ArgumentNullException.ThrowIfNull(chars); 696ArgumentNullException.ThrowIfNull(chars); 697ArgumentNullException.ThrowIfNull(bytes); 774ArgumentNullException.ThrowIfNull(bytes); 845ArgumentNullException.ThrowIfNull(bytes); 846ArgumentNullException.ThrowIfNull(chars); 906ArgumentNullException.ThrowIfNull(bytes);
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (6)
127ArgumentNullException.ThrowIfNull(chars); 215ArgumentNullException.ThrowIfNull(chars); 216ArgumentNullException.ThrowIfNull(bytes); 258ArgumentNullException.ThrowIfNull(bytes); 307ArgumentNullException.ThrowIfNull(bytes); 308ArgumentNullException.ThrowIfNull(chars);
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (6)
135ArgumentNullException.ThrowIfNull(chars); 223ArgumentNullException.ThrowIfNull(chars); 224ArgumentNullException.ThrowIfNull(bytes); 266ArgumentNullException.ThrowIfNull(bytes); 315ArgumentNullException.ThrowIfNull(bytes); 316ArgumentNullException.ThrowIfNull(chars);
src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (6)
171ArgumentNullException.ThrowIfNull(chars); 259ArgumentNullException.ThrowIfNull(chars); 260ArgumentNullException.ThrowIfNull(bytes); 302ArgumentNullException.ThrowIfNull(bytes); 351ArgumentNullException.ThrowIfNull(bytes); 352ArgumentNullException.ThrowIfNull(chars);
src\libraries\System.Private.CoreLib\src\System\Threading\Overlapped.cs (2)
116ArgumentNullException.ThrowIfNull(nativeOverlappedPtr); 124ArgumentNullException.ThrowIfNull(nativeOverlappedPtr);
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolBoundHandle.Portable.cs (2)
61ArgumentNullException.ThrowIfNull(overlapped); 78ArgumentNullException.ThrowIfNull(overlapped);
src\System\Reflection\Emit\DynamicILGenerator.cs (3)
895ArgumentNullException.ThrowIfNull(code); 912ArgumentNullException.ThrowIfNull(exceptions); 927ArgumentNullException.ThrowIfNull(localSignature);