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