Get Public Key From X.509 Certificate (.NET Package)

I have to get Public Key from X.509 Certificate string. I have downloaded the System.Security.Cryptography.X509Certificates package but I really dont know how to use it in UIpath. Do you guys have any suggestions? Many thanks in advance