DCPU16_ASM.Assembler.Parser.RemoveLineComments C# (CSharp) 메소드

RemoveLineComments() 개인적인 메소드

private RemoveLineComments ( string line ) : string
line string
리턴 string
        private string RemoveLineComments(string line)
        {
            var clearedLine = line;

            var commentIndex = line.IndexOf(";");

            if (commentIndex > 0)
            {
                clearedLine = line.Substring(0, commentIndex).Trim();
            }

            return clearedLine;
        }