示例#1
0
        public static void CheckForMODorCOPYorCLEAR(TextSpan value)
        {
            if (value.IndexOf(".MOD") != -1)
            {
                throw new ParseFailedException(value, ".MOD is not currently supported.");
            }

            if (value.IndexOf(".COPY=") != -1)
            {
                throw new ParseFailedException(value, ".COPY is not currently supported.");
            }

            if (value.IndexOf(".CLEAR") != -1)
            {
                throw new ParseFailedException(value, ".CLEAR is not currently supported.");
            }
        }