Address some nullability warnings in Chapter 11.
MODIFY
src/Chapter11/Listing11.03.UsingExceptionDispatchInfoToRethrowException.cs
src/Chapter11/Listing11.03.UsingExceptionDispatchInfoToRethrowException.cs
{
exception = exception.Flatten();
ExceptionDispatchInfo.Capture(
- exception.InnerException).Throw();
+ exception.InnerException??exception).Throw();
}
}
private static Task WriteWebRequestSizeAsync(
string url)
{
- StreamReader reader = null;
+ StreamReader? reader = null;
WebRequest webRequest =
WebRequest.Create(url);

Address some nullability warnings in Chapter 11.