7 public partial class FileManager
11 StringBuilder newName =
new StringBuilder( fileName );
12 newName.Replace(
"[]",
"Array" ).Replace(
"()",
"Func" );
14 for (
int i = 0; i < newName.Length; i++ )
17 if ( !Char.IsLetterOrDigit( c ) && c !=
'-' && c !=
'_' && c !=
'.' )
21 return newName.ToString();
26 if ( !Path.IsPathRooted( path ) )
30 path = Path.GetFullPath( Path.Combine(
_currentDir, path ) );
static string SanitizeFileName(string fileName)
void MakeAbsolute(ref string path)