In order to use a non-static field, method, or property, you must first create an object of an instance.
HashAlgorithm hashAlgo = HashAlgorithm.Create("SHA512");
Now use the object hashAlgo to call their methods. Reference for more information:
Compiler Error CS0120 | Microsoft Docs[
^]