|
throw new InvalidOperationException($"File is not aligned to elements with size {elementSize}."); |
By the convention all methods ended with OrDefault are expected to return default value in any unexpected case. Such methods are not expected to throw exceptions.