Disable Compilation Error In C#

To disable a compilation error in C#, you only need to put this code just before the method declaration:

#pragma warning disable xxxx

Where xxxx is the error code from compilation like 0429 for example.

Advertisements