Patcher.Rules.RuleCompiler.StripDebug C# (CSharp) 메소드

StripDebug() 개인적인 메소드

private StripDebug ( string code ) : string
code string
리턴 string
        private string StripDebug(string code)
        {
            // Comment out all calls to Debug class
            code = Regex.Replace(code, @"(\s*)(Debug\s*\.\s*(Message|Assert|Dump|Break|Pause)\s*\([^;]*;)", @"$1/* $2 */", RegexOptions.Multiline);
            return code;
        }