private static IsValidFileName ( string newValue ) : bool | ||
newValue | string | The value to check. |
return | bool |
private static bool IsValidFileName(string newValue)
{
try
{
new FileInfo(newValue);
}
catch
{
return false;
}
return true;
}