예제 #1
0
        public override string GetOutputFileName()
        {
            var extIndex = InputFileName.IndexOf(".json");

            if (extIndex >= 0)
            {
                return(InputFileName.Substring(0, extIndex));
            }
            return(InputFileName);
        }
예제 #2
0
        public override string GetOutputFileName()
        {
            string baseFileName;
            var    extIndex = InputFileName.IndexOf(".json");

            if (extIndex >= 0)
            {
                baseFileName = InputFileName.Substring(0, extIndex);
            }
            else
            {
                baseFileName = InputFileName;
            }
            return($"{baseFileName}.bin");
        }