System Diagnostics C# by API

using System.Diagnostics;
class MainClass
{
    [Conditional("DEBUG")]
    public void Validate()
    {
    }
}