How do you find out if your default `.net` dll is changed/modified/hacked?

Example taking `System.Console.WriteLine` to explain what I mean.

If `WriteLine()` is code injected to write output twice something like the following,

```
Console.WriteLine("Hello Programmers");
Output:
Hello Programmers
Hello Programmers

```