diff --git a/X10D/src/FileInfoExtensions/FileInfoExtensions.cs b/X10D/src/FileInfoExtensions/FileInfoExtensions.cs index c3f5e32..d79b498 100644 --- a/X10D/src/FileInfoExtensions/FileInfoExtensions.cs +++ b/X10D/src/FileInfoExtensions/FileInfoExtensions.cs @@ -14,7 +14,7 @@ public static class FileInfoExtensions /// A derived type. /// A array representing the hash of the file. /// is . - /// The file pointed at by does not exist. + /// The specified file was not found. /// The opened file stream cannot be read. /// /// The specified does not offer a public, static. parameterless Create method, or its @@ -29,11 +29,6 @@ public static class FileInfoExtensions throw new ArgumentNullException(nameof(value)); } - if (!value.Exists) - { - throw new FileNotFoundException("Cannot get hash of non-existent file.", value.FullName); - } - using FileStream stream = value.OpenRead(); return stream.GetHash(); }