AcTools.Utils.FileUtils.EnsureFileNameIsValid C# (CSharp) 메소드

EnsureFileNameIsValid() 공개 정적인 메소드

public static EnsureFileNameIsValid ( string fileName ) : string
fileName string
리턴 string
        public static string EnsureFileNameIsValid(string fileName) {
            return Path.GetInvalidFileNameChars().Union("[]").Aggregate(fileName, (current, c) => current.Replace(c, '-'));
        }