コード例 #1
0
 private static bool IsInsideString(string code, int index)
 {
     var stringStructure = new InnerStructures.StringStructure();
     for (var i = 0; i <= index; i++)
         stringStructure.Handle(code[i]);
     return stringStructure.IsInsideString;
 }
コード例 #2
0
        private static bool IsInsideString(string code, int index)
        {
            var stringStructure = new InnerStructures.StringStructure();

            for (var i = 0; i <= index; i++)
            {
                stringStructure.Handle(code[i]);
            }
            return(stringStructure.IsInsideString);
        }