If the extension method AddRange is called with a null parameter, it will throw a NullReferenceException at runtime. This is because the method expects a non-null parameter of type IEnumerable to add elements to a collection. When it receives a null value, it cannot perform the operation and throws an exception.
Asked: 2021-11-18 11:00:00 +0000
Seen: 8 times
Last updated: Oct 11 '21