diff --git a/X10D/StreamExtensions.cs b/X10D/StreamExtensions.cs
index 5576aca..13ca2a9 100644
--- a/X10D/StreamExtensions.cs
+++ b/X10D/StreamExtensions.cs
@@ -22,7 +22,7 @@
/// Returns a array representing the hash of the stream.
public static byte[] GetHash(this Stream stream) where T : HashAlgorithm
{
- MethodInfo create = typeof(T).GetMethod("Create", new Type[] { });
+ MethodInfo create = typeof(T).GetMethod("Create", Array.Empty());
using T crypt = (T)create?.Invoke(null, null);
return crypt?.ComputeHash(stream);
}