SphereStudio.Project.MakeFileName C# (CSharp) Method

MakeFileName() private static method

private static MakeFileName ( string name ) : string
name string
return string
        private static string MakeFileName(string name)
        {
            string invalidChars = Regex.Escape(new string(System.IO.Path.GetInvalidFileNameChars()));
            string pattern = string.Format(@"([{0}]*\.+$)|([{0}]+)", invalidChars);
            return Regex.Replace(name, pattern, "_") + ".ssproj";
        }