2 using System.Collections.Generic;
9 public partial class FileManager
11 internal static string SanitizeFileName(
string fileName )
13 StringBuilder newName =
new StringBuilder( fileName );
14 newName.Replace(
"[]",
"Array" ).Replace(
"()",
"Func" );
16 for (
int i = 0; i < newName.Length; i++ )
19 if ( !Char.IsLetterOrDigit( c ) && c !=
'-' && c !=
'_' && c !=
'.' )
23 return newName.ToString();
26 internal void MakeAbsolute( ref
string path )
28 if ( !Path.IsPathRooted( path ) )