Application check certificate and signature of a DLL before loading it.

In c# a signed application can check/verify its own the certificate and that of a .net assembly (for example a DLL) using System.Security.Cryptography.X509Certificates

No problem with that - but I can’t see any way for an application to check that the signature is intact? I mean has the signed assembly been tampered with or patched ?

Patching or tampering with a signed EXE or DLL does not break the certificate. It breaks the signature.

I create DLLs and I want the EXE to be able to check the signature of the DLL before loading it.