コード例 #1
0
        /// <summary>
        ///     returns true if the loading succeeded
        /// </summary>
        /// <returns>the success state of the operation</returns>
        private bool LoadSource()
        {
            bool ret = filepath.TryGetLines(out source);

            if (ret)
            {
                source = source.Select(x => x.Replace("\r", "")).ToArray();
            }

            return(ret);
        }
コード例 #2
0
        /// <summary>
        /// returns true if the loading succeeded
        /// </summary>
        /// <returns>the success state of the operation</returns>
        private bool LoadSource()
        {
            bool ret = filepath.TryGetLines(out source);

            return(ret);
        }